Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Forked from ramhoj/s3_read_only_policy.json
Last active August 23, 2017 20:11
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 mraaroncruz/498b311c8b80179dba90be05943719bd to your computer and use it in GitHub Desktop.
Save mraaroncruz/498b311c8b80179dba90be05943719bd to your computer and use it in GitHub Desktop.
AWS IAM S3 read/write only policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::my-app-builds",
"arn:aws:s3:::my-app-builds/*"
]
}
]
}
{
"Version": "2012-10-17",
"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