Skip to content

Instantly share code, notes, and snippets.

@tuffacton
Created September 9, 2019 15:54
Show Gist options
  • Select an option

  • Save tuffacton/cc32579d52b218c459db591387025ef2 to your computer and use it in GitHub Desktop.

Select an option

Save tuffacton/cc32579d52b218c459db591387025ef2 to your computer and use it in GitHub Desktop.
A nominal S3 bucket policy based on canonical IDs
{
"Id": "Policy1556720691353",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1556720652492",
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::<bucket>",
"Principal": {
"CanonicalUser": "Canonical-ID-String"
}
},
{
"Sid": "Stmt1556720690235",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::<bucket>/*",
"Principal": {
"CanonicalUser": "Canonical-ID-String"
}
}
]
}
@tuffacton

tuffacton commented Sep 27, 2019

Copy link
Copy Markdown
Author
  • Clean up so all actions and resources are compiled in the same line, no reason to split them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment