Amazon S3 restrict policy to a single bucket only

By.

min read

My profile

Share this:

If your bucket is named: [b:bc9fb8819c]4ormat-knowledge-base[/b:bc9fb8819c] this will do the trick:

[code:1:bc9fb8819c]{
“Statement”: [
{
“Effect”: “Allow”,
“Action”: “s3:ListAllMyBuckets”,
“Resource”: “arn:aws:s3:::*”
},
{
“Effect”: “Allow”,
“Action”: “s3:*”,
“Resource”: [
“arn:aws:s3:::4ormat-knowledge-base”,
“arn:aws:s3:::4ormat-knowledge-base/*”
]
}
]
}[/code:1:bc9fb8819c]

[u:bc9fb8819c]And yes, you will need to allow listing of all buckets ..[/u:bc9fb8819c]

[b:bc9fb8819c]Source:[/b:bc9fb8819c]
http://mikeferrier.com/2011/10/27/granting-access-to-a-single-s3-bucket-using-amazon-iam/

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *