Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Allan-Gong/eca531dc82152441383e383456ed492c to your computer and use it in GitHub Desktop.
Save Allan-Gong/eca531dc82152441383e383456ed492c to your computer and use it in GitHub Desktop.
CloudWatchAgentServerPolicy.json
{
"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