Skip to content

Instantly share code, notes, and snippets.

@alexw23
Forked from lusis/iam-s3-policy.json
Created November 21, 2012 22:10
Show Gist options
  • Save alexw23/4128191 to your computer and use it in GitHub Desktop.
Save alexw23/4128191 to your computer and use it in GitHub Desktop.
A sample AWS IAM json policy file with read-only access to certain S3 buckets
{
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::my_bucket/*","arn:aws:s3:::my_bucket"]
}
],
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::my_other_bucket/*","arn:aws:s3:::my_other_bucket"]
}
],
"Statement":[{
"Effect":"Allow",
"Action":["s3:ListAllMyBuckets"],
"Resource":"*",
"Condition": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment