Retrieve secrets through environment variables - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Retrieve secrets through environment variables

Instead of hardcoding sensitive information in plain text in your application, you can use Secrets Manager or Amazon Systems Manager Parameter Store to store the sensitive data. Then, you can create an environment variable in the container definition and enter the ARN of the Secrets Manager or Amazon Systems Manager secret as the value. This allows your container to retrieve sensitive data at runtime.