Amazon Athena Connector

Amazon Athena Connector

Create minimal Amazon S3 bucket policy

Create minimal Amazon S3 bucket policy

The minimal Amazon S3 bucket policy restricts user operations and user access to specific Amazon S3 buckets by assigning an AWS Identity and Access Management (IAM) policy to users. You can configure the AWS IAM policy through the AWS console.
You can use the following minimum required permissions to successfully store the Amazon Athena query result on Amazon S3:
  • PutObject
  • GetObject
  • DeleteObject
  • ListBucket
Sample Policy
:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": [ "s3:PutObject", "s3:GetObject", "s3:DeleteObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::<bucket_name>/*", "arn:aws:s3:::<bucket_name>" ] } ] }