Created
April 1, 2024 21:36
-
-
Save Allan-Gong/eca531dc82152441383e383456ed492c to your computer and use it in GitHub Desktop.
CloudWatchAgentServerPolicy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "CWACloudWatchServerPermissions", | |
"Effect": "Allow", | |
"Action": [ | |
"cloudwatch:PutMetricData", | |
"ec2:DescribeVolumes", | |
"ec2:DescribeTags", | |
"logs:PutLogEvents", | |
"logs:PutRetentionPolicy", | |
"logs:DescribeLogStreams", | |
"logs:DescribeLogGroups", | |
"logs:CreateLogStream", | |
"logs:CreateLogGroup", | |
"xray:PutTraceSegments", | |
"xray:PutTelemetryRecords", | |
"xray:GetSamplingRules", | |
"xray:GetSamplingTargets", | |
"xray:GetSamplingStatisticSummaries" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "CWASSMServerPermissions", | |
"Effect": "Allow", | |
"Action": [ | |
"ssm:GetParameter" | |
], | |
"Resource": "arn:aws:ssm:*:*:parameter/AmazonCloudWatch-*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment