Skip to content

Instantly share code, notes, and snippets.

@felipe3dfx
Created October 2, 2019 19:37
Show Gist options
  • Save felipe3dfx/ab66273349bda38b1a5507b7ae2008a7 to your computer and use it in GitHub Desktop.
Save felipe3dfx/ab66273349bda38b1a5507b7ae2008a7 to your computer and use it in GitHub Desktop.
Next Cloud S3 Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListAllBuckets",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "ListObjectsInBucket",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": ["arn:aws:s3:::<bucket_name>"]
},
{
"Sid": "AllObjectActions",
"Effect": "Allow",
"Action": "s3:*Object",
"Resource": ["arn:aws:s3:::<bucket_name>/*",]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment