Skip to content

Instantly share code, notes, and snippets.

@jasonmccay
Created January 16, 2012 05:41
Show Gist options
  • Save jasonmccay/1619242 to your computer and use it in GitHub Desktop.
Save jasonmccay/1619242 to your computer and use it in GitHub Desktop.
IAM Permissions Example
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::*"
},
{
"Action": [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:DeleteObject",
"s3:DeleteObjectAcl"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::MY-BACKUP-BUCKET/*"
]
}
]
}
@Winslett
Copy link

Winslett commented Jun 1, 2012

Confirmed there is a typo in this gist:

Replace:

"s3:ListBuckets"

with

 "s3:ListBucket"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment