Skip to content

Instantly share code, notes, and snippets.

@hirefrank
Created August 28, 2014 19:49
Show Gist options
  • Save hirefrank/9ad4961f9b3805adc618 to your computer and use it in GitHub Desktop.
Save hirefrank/9ad4961f9b3805adc618 to your computer and use it in GitHub Desktop.
Example IAM User Policy for Middleman S3 sync with Cloudfront
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::my_bucket"
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "arn:aws:s3:::my_bucket/*"
},
{
"Sid": "Stmt1409254980000",
"Effect": "Allow",
"Action": [
"cloudfront:CreateInvalidation",
"cloudfront:GetDistribution"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment