将敏感数据传递给 Amazon ECS 容器 - Amazon Elastic Container Service
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

将敏感数据传递给 Amazon ECS 容器

您可以将敏感数据(例如数据库凭证)安全地传递到容器中。

您可以使用 Secrets Manager 或以 Systems Manager Parameter Store 中的参数来存储密钥。

您可以通过编程方式从应用程序中检索密钥,也可以使用环境变量。

首先,将敏感数据作为密钥存储在 Secrets Manager 中,或作为参数存储在 Systems Manager Parameter Store 中。然后,使用以下任一方式将密钥公开给容器。