Pass Secrets Manager secrets through Amazon ECS environment variables - Amazon Elastic Container Service

When you inject a secret as an environment variable, you can specify the full contents of a secret, a specific JSON key within a secret, or a specific version of a secret to inject. This helps you control the sensitive data exposed to your container.