Created
April 5, 2020 12:10
-
-
Save hades2510/ce0ecaa2b27a0711daffe630285e07d3 to your computer and use it in GitHub Desktop.
S3 Policy for S3 bucket, get, put and list a bucket
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": "S1", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
], | |
"Resource": [ | |
"arn:aws:s3:::bucket-name/*", | |
] | |
}, | |
{ | |
"Sid": "S2", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": "arn:aws:::aws-account-id:bucket-name" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment