Menu
AWS Identity and Access Management
User Guide

Amazon S3: Allows Read and Write Access to a Specific S3 Bucket, Programmatically and in the Console

This example shows how you might create a policy that allows Read and Write access to a specific S3 bucket. This policy also provides the permissions necessary to complete this action on the console. To use this policy, replace the red text in the example policy with your own information.

Copy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetBucketLocation", "s3:ListAllMyBuckets" ], "Resource": "arn:aws:s3:::*" }, { "Effect": "Allow", "Action": ["s3:ListBucket"], "Resource": ["arn:aws:s3:::<BUCKET-NAME>"] }, { "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject" ], "Resource": ["arn:aws:s3:::<BUCKET-NAME>/*"] } ] }