Skip to content

Instantly share code, notes, and snippets.

@mweagle mweagle/polp.go
Last active Apr 26, 2016

Embed
What would you like to do?
"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
You can’t perform that action at this time.