Akshay Parkhi's Weblog

Subscribe

IAM Permissions for BedrockAgentCoreApp Observability

12th February 2026

IAM Permissions for BedrockAgentCoreApp Observability

Your AgentCore runtime role needs these permissions to emit logs, traces, and metrics:

CloudWatch Logs (runtime-logs and otel-rt-logs)

{
      "Effect": "Allow",
      "Action": [
          "logs:CreateLogGroup",
          "logs:CreateLogStream",
          "logs:PutLogEvents",
          "logs:DescribeLogStreams",
          "logs:DescribeLogGroups"
      ],
      "Resource": "arn:aws:logs:REGION:ACCOUNT_ID:log-group:/aws/bedrock-agentcore/runtimes/*"
  }

X-Ray (OTel traces)

{
      "Effect": "Allow",
      "Action": [
          "xray:PutTraceSegments",
          "xray:PutTelemetryRecords",
          "xray:GetSamplingRules",
          "xray:GetSamplingTargets"
      ],
      "Resource": "*"
  }

CloudWatch Metrics (bedrock-agentcore namespace)

{
      "Effect": "Allow",
      "Action": "cloudwatch:PutMetricData",
      "Resource": "*",
      "Condition": {
          "StringEquals": {
              "cloudwatch:namespace": "bedrock-agentcore"
          }
      }
  }

Summary

PermissionPurpose
logs:CreateLogGroupCreate the /aws/bedrock-agentcore log group
logs:CreateLogStreamCreate runtime-logs and otel-rt-logs streams
logs:PutLogEventsWrite log entries to streams
logs:DescribeLogStreamsList/discover existing log streams
logs:DescribeLogGroupsList/discover existing log groups
xray:PutTraceSegmentsSend OTel trace data to X-Ray
xray:PutTelemetryRecordsSend telemetry records to X-Ray
xray:GetSamplingRulesFetch X-Ray sampling rules
xray:GetSamplingTargetsFetch X-Ray sampling targets
cloudwatch:PutMetricDataPublish agent metrics (latency, invocations, etc.)

Note: The runtime config setting protocolConfiguration: {"serverProtocol": "HTTP"} is required for runtime-logs to be captured.

This is IAM Permissions for BedrockAgentCoreApp Observability by Akshay Parkhi, posted on 12th February 2026.

Next: What I Learned Building a Streaming Agent on AWS Bedrock AgentCore Runtime

Previous: CloudWatch Log Streams for BedrockAgentCoreApp