Skip to content

Instantly share code, notes, and snippets.

@hades2510
Created April 5, 2020 12:10
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 hades2510/ce0ecaa2b27a0711daffe630285e07d3 to your computer and use it in GitHub Desktop.
Save hades2510/ce0ecaa2b27a0711daffe630285e07d3 to your computer and use it in GitHub Desktop.
S3 Policy for S3 bucket, get, put and list a bucket
{
"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