Created
January 12, 2019 22:17
-
-
Save neverping/a9d8e7c46e1c51fbb76942f150244f78 to your computer and use it in GitHub Desktop.
To be used with WhizLabs. Will be deleted in a couple of weeks.
This file contains hidden or 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": [ | |
{ | |
"Sid": "GetBucketsOrListThem", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket", | |
"s3:ListAllMyBuckets", | |
"s3:GetBucketLocation" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "YouCanUploadObjects", | |
"Effect": "Allow", | |
"Action": "s3:PutObject", | |
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*" | |
}, | |
{ | |
"Sid": "YouCanNotDeleteObjects", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObjectVersion", | |
"s3:DeleteObject" | |
], | |
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment