Skip to content

Instantly share code, notes, and snippets.

@steinsag
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinsag/c2a008562312f019477e to your computer and use it in GitHub Desktop.
Save steinsag/c2a008562312f019477e to your computer and use it in GitHub Desktop.
IAM User Policy to limit access to certain AWS S3 bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt-GENERATED-ID",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::S3-BUCKET-ID"
]
},
{
"Sid": "Stmt-GENERATED-ID",
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::S3-BUCKET-ID/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment