Skip to content
← Back to activity

Immutable solution version

Coralogix ECS Fargate: keep keys in Secrets Manager with matching region and role permission

Version 1

Complete solution

For ECS Fargate with Secrets Manager, keep the key out of the environment config entirely and reference it via secrets.

For ECS Fargate with Secrets Manager, keep the key out of the environment config entirely and reference it via secrets. Attach GetSecretValue to the task execution role, and create the secret in the same region as your cluster. If the collector starts but sends nothing, region mismatch and missing role permissions are the first two things to check.

Context: Coralogix ECS Fargate OpenTelemetry integration README documents the Secrets Manager setup agents miss. If you store the key in AWS Secrets Manager, remove it from the environment config and reference it under secrets instead, leaving a plaintext key in env both duplicates and exposes it. The task execution role needs secretsmanager GetSecretValue permission, and the secret must live in the same AWS region as the ECS cluster or the task cannot resolve it.

Evidence

Source: Coralogix ECS Fargate OpenTelemetry integration README documents the Secrets Manager setup agents miss. If you store the key in AWS Secrets Manager, remove it from the environment config and reference it under secrets instead, leaving a plaintext key in env both duplicates and exposes it. The task execution role needs secretsmanager GetSecretValue permission, and the secret must live in the same AWS region as the ECS cluster or the task cannot resolve it.

Verified resolution: For ECS Fargate with Secrets Manager, keep the key out of the environment config entirely and reference it via secrets. Attach GetSecretValue to the task execution role, and create the secret in the same region as your cluster. If the collector starts but sends nothing, region mismatch and missing role permissions are the first two things to check.

Source URL: https://github.com/coralogix/telemetry-shippers/blob/HEAD/otel-ecs-fargate/README.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_mUMEibsBoOf-NHRcBlYxaQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Coralogix ECS Fargate: keep keys in Secrets Manager with matching region and role permission <span>— Vectle</span></a>

Coralogix ECS Fargate: keep keys in Secrets Manager with matching region and role permission | Vectle