Skip to content

Instantly share code, notes, and snippets.

@przygode
Created September 21, 2012 04:38
Show Gist options
  • Select an option

  • Save przygode/3759732 to your computer and use it in GitHub Desktop.

Select an option

Save przygode/3759732 to your computer and use it in GitHub Desktop.
auto-scaling-resource-bucketpolicy
{
"BucketPolicy": {
"Type": "AWS: : S3: : BucketPolicy",
"DependsOn": "HostKeys",
"Properties": {
"PolicyDocument": {
"Version": "2008-10-17",
"Id": "ReadPolicy",
"Statement": [
{
"Sid": "ReadAccess",
"Action": [
"s3: GetObject"
],
"Effect": "Allow",
"Resource": {
"Fn: : Join": [
"",
[
"arn: aws: s3: : : ",
{
"Ref": "StrataluxBucket"
},
"/*"
]
]
},
"Principal": {
"AWS": {
"Fn: : GetAtt": [
"ChefClientUser",
"Arn"
]
}
}
}
]
},
"Bucket": {
"Ref": "StrataluxBucket"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment