Skip to content

CICD-268 · AWS Secrets Manager integration ​

Encyclopedia · Cloud infrastructure integration · All snippets

Previous · CICD-267 · Next · CICD-269

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites provider CLI, scoped CI identity, test environment and provider configuration for named resource.
  • Platforms github-actions, cloud-cli.
  • Parameters SECRET_ARN.

2. Copy the snippet ​

bash
aws secretsmanager describe-secret --secret-id "${SECRET_ARN:?}" --query '{ARN:ARN,RotationEnabled:RotationEnabled}'

3. How it works ​

The metadata query checks the ARN and rotation configuration without fetching the secret's value. Runtime retrieval should use a separately scoped workload identity.

4. Verify the result ​

Validate metadata in CI. Applications should fetch values at runtime with a scoped role rather than passing plaintext through artifacts.

Watch for. Use the intended trusted execution context. Keep secret values out of traces, artifacts and debug output.

Validation syntax-validated (Bash parse). Status definitions.