Skip to content

Instantly share code, notes, and snippets.

@dittoalex
Forked from ramhoj/s3_read_only_policy.json
Created June 13, 2017 18:45
Show Gist options
  • Save dittoalex/995c29bac44391697c218e93ee01df5e to your computer and use it in GitHub Desktop.
Save dittoalex/995c29bac44391697c218e93ee01df5e to your computer and use it in GitHub Desktop.
AWS IAM S3 read/write only policy
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::my-app-builds",
"arn:aws:s3:::my-app-builds/*"
]
}
]
}
{
"Statement": [
{
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::my-app-builds"
]
},
{
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::my-app-builds/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment