Skip to content

Instantly share code, notes, and snippets.

@gregorp
Created February 8, 2022 14:09
Show Gist options
  • Save gregorp/aa9054471a0bd82ab44100c3481cf07f to your computer and use it in GitHub Desktop.
Save gregorp/aa9054471a0bd82ab44100c3481cf07f to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::project-evident-cnmi",
"Condition": {
"StringEquals": {
"s3:delimiter": "/",
"s3:prefix": [
"",
"dropbox"
]
}
}
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::CNMI",
"Condition": {
"StringLike": {
"s3:prefix": "dropbox/*"
}
}
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": "s3:GetBucketLocation",
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "VisualEditor3",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObjectVersion",
"s3:DeleteObject",
"s3:GetObjectVersion"
],
"Resource": "arn:aws:s3:::CNMI/dropbox/*"
},
{
"Sid": "VisualEditor4",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment