Skip to content

Instantly share code, notes, and snippets.

@mweagle
Last active April 26, 2016 13:06
Show Gist options
  • Save mweagle/2279bf5ee39a2a2da0bf005ecc1575b7 to your computer and use it in GitHub Desktop.
Save mweagle/2279bf5ee39a2a2da0bf005ecc1575b7 to your computer and use it in GitHub Desktop.
"core": []iamPolicyStatement{
iamPolicyStatement{
Action: []string{"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"},
Effect: "Allow",
Resource: gocf.Join("",
gocf.String("arn:aws:logs:"),
gocf.Ref("AWS::Region"),
gocf.String(":"),
gocf.Ref("AWS::AccountId"),
gocf.String("*")),
},
iamPolicyStatement{
Action: []string{"cloudwatch:PutMetricData"},
Effect: "Allow",
Resource: wildcardArn,
},
iamPolicyStatement{
Effect: "Allow",
Action: []string{"cloudformation:DescribeStacks",
"cloudformation:DescribeStackResource"},
Resource: gocf.Join("", cloudFormationThisStackArn...),
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment