Last active
June 21, 2019 16:01
-
-
Save tonyfraser/77f26b55d5d45dfb084c47ef31a54fe7 to your computer and use it in GitHub Desktop.
A read only s3 permissions policy. think s3://outbounddrops/client-name, where you give
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:GetBucketLocation" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListBucket", | |
"Resource": "arn:aws:s3:::{bucket}", | |
"Condition": { | |
"StringLike": { | |
"s3:prefix": [ | |
"", | |
"{key}", | |
"{key}/*" | |
] | |
} | |
} | |
}, | |
{ | |
"Action": [ | |
"s3:GetObject" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::{bucket}/{key}", | |
"arn:aws:s3:::{bucket}/{key}/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment