AWS Distro for OpenTelemetry
Configuring Permissions
Configuring Permissions
The AWS Distro for OpenTelemetry Collector requires permissions for Amazon CloudWatch Logs for metric publishing, and for AWS X-Ray for sending traces.
Create IAM policy
- Open the IAM console.
- In the navigation pane, choose Policies.
- Choose Create policy, and then choose JSON.
- 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 "logs:PutRetentionPolicy",13 "xray:PutTraceSegments",14 "xray:PutTelemetryRecords",15 "xray:GetSamplingRules",16 "xray:GetSamplingTargets",17 "xray:GetSamplingStatisticSummaries",18 "ssm:GetParameters"19 ],20 "Resource": "*"21 }22 ]23}
- Choose Review policy.
- On the Review policy page, type
AWSDistroOpenTelemetryPolicy
for the Name, and then choose Create policy.