Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nathairtras/ed843d0d34dcb12995106b3c9fced4e7 to your computer and use it in GitHub Desktop.
Save nathairtras/ed843d0d34dcb12995106b3c9fced4e7 to your computer and use it in GitHub Desktop.
AWS IAM policy template for granting read access to a full bucket and write access to a key prefix in that bucket.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
"Resource": [
"arn:aws:s3:::BUCKET",
"arn:aws:s3:::BUCKET/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::BUCKET/KEY/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment