Skip to content

Commit 6d13a19

Browse files
Allow nodes to write CloudWatch metrics
This is primarily in order to facilitate exporting CNI metrics (ref #278)
1 parent 44337ce commit 6d13a19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cfn/builder/iam.go

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func (c *ClusterResourceSet) addResourcesForIAM() {
7272
"ec2:CreateSecurityGroup",
7373
"ec2:Describe*",
7474
})
75+
c.rs.attachAllowPolicy("PolicyCloudWatchMetrics", refSR, "*", []string{
76+
"cloudwatch:PutMetricData",
77+
})
7578
}
7679

7780
// WithIAM states, if IAM roles will be created or not

0 commit comments

Comments
 (0)