Error: AmazonS3Exception “Access Denied with Status Code: 403” in Amazon Athena when I query a bucket in another account

1. Account A (S3 Bucket )
2. Account B (Athena query)

Let's start with Account A:

  1. Locate the S3 Bucket Object Permissions Tab
  2. Either edit ACL of the S3 Bucket Object or add Bucket policy
  3. Under ACL add External AWS Account Canonical ID
  4. Edit Bucket policy by Using…