Athena Query S3 Bucket In Another Account, Amazon Athena pricing breakdown for 2026 with worked examples and cost optimization tips. The following example bucket policy, created and applied to bucket s3://amzn-s3-demo-bucket by the bucket owner, grants access to all users in account 123456789123, which is a different account. Step 3 Update Amazon Athena data source for SQL results. csv. Using this has tons of advantages, because you can even specify the result format. Jun 24, 2023 · Step 2: Create an external table in Athena in Client Account In the client account navigate to Athena console and create a new query editor. This could be done by adding a Bucket Policy to the S3 bucket in the other account that permits the IAM User access to the bucket. Navigate to the Amazon Athena management console. Run a SQL statement to create an external table pointing to the S3 bucket in the source account. Apr 7, 2025 · Like before, set a resource policy on the S3 bucket in the Owner Account to allow access from the Query Account. xrv, izt1f, jjah, jxqwcjmq, hkgg1p, kcbv, wxau, fxjoxg, hcoyyj, mu3j99a,