Created
August 28, 2014 19:49
-
-
Save hirefrank/9ad4961f9b3805adc618 to your computer and use it in GitHub Desktop.
Example IAM User Policy for Middleman S3 sync with Cloudfront
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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
More info:
https://github.com/alienfast/middleman-aws
https://github.com/fredjean/middleman-s3_sync
https://github.com/andrusha/middleman-cloudfront