Created
May 6, 2014 15:07
-
-
Save drewr/02e6d1957e3016abed99 to your computer and use it in GitHub Desktop.
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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::snaps.example.com" | |
] | |
}, | |
{ | |
"Action": [ | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:DeleteObject" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::snaps.example.com/*" | |
] | |
} | |
], | |
"Version": "2012-10-17" | |
} |
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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Condition": { | |
"StringLike": { | |
"s3:prefix": [ | |
"foo/*" | |
] | |
} | |
}, | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::snaps.example.com" | |
] | |
}, | |
{ | |
"Action": [ | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:DeleteObject" | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::snaps.example.com/foo/*" | |
] | |
} | |
], | |
"Version": "2012-10-17" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment