Skip to content

Instantly share code, notes, and snippets.

@richardbowden
Created February 11, 2015 10:02
Show Gist options
  • Select an option

  • Save richardbowden/42131dbefc86a3a32b1b to your computer and use it in GitHub Desktop.

Select an option

Save richardbowden/42131dbefc86a3a32b1b to your computer and use it in GitHub Desktop.
lock down an s3 bucket to IAM user example
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1412062044000",
"Effect": "Allow",
"Action": [
"s3:AbortMultipartUpload",
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:ListBucketMultipartUploads",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::my.s3.bucket/*"
]
},
{
"Sid": "Stmt1412062097000",
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
"Resource": [
"*"
]
},
{
"Sid": "Stmt1412062128000",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::my.s3.bucket"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment