Skip to content

Instantly share code, notes, and snippets.

@q7r
Last active June 22, 2018 06:23
Show Gist options
  • Save q7r/2b32c746ea184f890405cf303fb88057 to your computer and use it in GitHub Desktop.
Save q7r/2b32c746ea184f890405cf303fb88057 to your computer and use it in GitHub Desktop.
policies for s3 and cloudfront
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::gitreponame-*"
},
{
"Action": [
"cloudfront:CreateInvalidation",
"cloudfront:GetDistribution",
"cloudfront:GetStreamingDistribution",
"cloudfront:GetDistributionConfig",
"cloudfront:GetInvalidation",
"cloudfront:ListInvalidations",
"cloudfront:ListStreamingDistributions",
"cloudfront:ListDistributions"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::gitreponame-*",
"arn:aws:s3:::gitreponame-*/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment