无法 verify/create 输出桶

Unable to verify/create output bucket

我正在尝试向 Amazon Athena 查询 ETL 作业的最终结果。 AWS 中的一切都运行良好,但现在我需要从我的 Rails 应用程序访问它,我 运行 遇到了问题。 我已经在 aws 论坛和此处阅读了与此主题相关的问题和答案。 None 似乎有效,因为它们都围绕着 IAM 许可。我的组织里有神力。

bucket中的region和sdk client匹配

我的权限是:

{
  "Effect": "Allow",
  "Action": "*",
  "Resource": "*"
}

桶是public;现在,当我测试时。但无论我做什么,我都会继续收到此错误

Unable to verify/create output bucket bucket-name

这是我试图用来查询 Athena 的代码块:

client = Aws::Athena::Client.new # region/access key/secret key are set in the intializer.
client.start_query_execution({
                               query_string: "SELECT * FROM \"database\".\"table\" limit 10;",
                               result_configuration: {
                                 output_location: "s3://bucket-name/aws-athena-query-results/",
                                 encryption_configuration: {
                                   encryption_option: "SSE_S3"
                                 }
                               }
                             })

在此先感谢您提供的任何帮助:D

事实证明,在我的案例中,这是我们的 DevOps 主管设置的强制 MFA 权限。暂时从该组中删除我的 IAM 用户允许 Athena 访问。他们现在将协助我 creating/modifying 允许 Athena 访问权限,即使我的帐户启用了 MFA