AWS Open Distro for OpenTelemetry

Configuring Permissions

Configuring Permissions

The AWS Distro for OpenTelemetry Collector requires permissions for AWS CloudWatch Logs for metric publishing, and for AWS X-Ray for sending traces.




Create IAM policy

  1. Open the IAM console.
  2. In the navigation pane, choose Policies.
  3. Choose Create policy, and then choose JSON.
  4. Type the following policy.
1{
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Effect": "Allow",
6 "Action": [
7 "logs:PutLogEvents",
8 "logs:CreateLogGroup",
9 "logs:CreateLogStream",
10 "logs:DescribeLogStreams",
11 "logs:DescribeLogGroups",
12 "xray:PutTraceSegments",
13 "xray:PutTelemetryRecords",
14 "xray:GetSamplingRules",
15 "xray:GetSamplingTargets",
16 "xray:GetSamplingStatisticSummaries",
17 "ssm:GetParameters"
18 ],
19 "Resource": "*"
20 }
21 ]
22}
  1. Choose Review policy.
  2. On the Review policy page, type AWSDistroOpenTelemetryPolicy for the Name, and then choose Create policy.

On this page