Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

CloudWatch agent log shows `AccessDeniedException: User: arn:aws:sts::...:assumed-role/... is not authorized to perform: logs:PutLogEvents`

BeginnerTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → Role permissions cover metrics but not logs, or log group is encrypted with a KMS key the role can't use.

Diagnose → Read the agent log; check the role and the log group's kmsKeyId.

Fix → Grant logs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents, logs:DescribeLogStreams (included in CloudWatchAgentServerPolicy) and KMS kms:GenerateDataKey/kms:Encrypt if needed.

Prevent → Use a single managed policy for all agent hosts.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch