Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pipopotamasu/3f84e44f262c041d43b2c0bc466572d9 to your computer and use it in GitHub Desktop.
Save pipopotamasu/3f84e44f262c041d43b2c0bc466572d9 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicRead",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::{bucket-name}/*"
},
{
"Sid": "DenyUserAgents",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::{bucket-name}/*",
"Condition": {
"StringNotEquals": {
"aws:UserAgent": "murakami-test"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment