Skip to content

Instantly share code, notes, and snippets.

@ninajlu
Created March 28, 2019 13:15
Show Gist options
  • Save ninajlu/7fea69f60d0a76e63d2499c6c5e37d5f to your computer and use it in GitHub Desktop.
Save ninajlu/7fea69f60d0a76e63d2499c6c5e37d5f to your computer and use it in GitHub Desktop.
{
"Version": "2018-03-27",
"Id": "Policy123",
"Statement": [
{
"Sid": "Stmt123",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::XXXXXXXX:role/[ROLE NAME]"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::[BUCKET_NAME]"
},
{
"Sid": "Stmt1234",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::XXXXXXXX:role/[ROLE NAME]"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::[BUCKET_NAME]/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment