S3 上的 Athena 使用密钥
我有一个充满 .gz 文件的外部 S3 存储桶的密钥和秘密密钥。 我需要使用 Athena 分析这些数据。 是否可以选择使用密钥和秘密密钥将 Athena 连接到 S3 存储桶?如果可以,该怎么办?
当我获得控制台连接时,我知道如何连接 S3,但当我只有密钥和秘密密钥时,我不知道如何连接 S3。
I have got a key and secrets key for an external S3 bucket full of .gz files.
I need to analyze this data using Athena.
Is there an option to connect Athena to the S3 bucket using a key and secret key? if so, how to do it?
I know how to connect S3 when I get a console connection but not when I've only a key and secret key.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这比用单一答案来回答要复杂得多。
正如已经提到的,您无法仅使用密钥来访问控制台。您可以使用这些凭据进行编程访问,例如从 CLI 进行访问。
您可能想要尝试使用 AWS CLI 工具。 https://docs.aws.amazon。 com/cli/latest/reference/athena/start-query-execution.html
aws athena start-query-execution <查询>
It is more comlicated than answering with a single answer.
As it was mentioned already, you cannot have access to the console with only the secret key. You can use those credential for programatic access for example from your CLI.
What you might want to try is to use the AWS CLI tool. https://docs.aws.amazon.com/cli/latest/reference/athena/start-query-execution.html
aws athena start-query-execution <query>