Skip to content

Instantly share code, notes, and snippets.

@panchiz
Last active August 29, 2015 14:26
Show Gist options
  • Save panchiz/5aeb68babd97e4347083 to your computer and use it in GitHub Desktop.
Save panchiz/5aeb68babd97e4347083 to your computer and use it in GitHub Desktop.
AWS S3 paperclip ACL
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt0000000000000000",
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::my-bucket/*"
],
"Condition": {
"StringLike": {
"aws:Referer": [
"http://my.url/*"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment