

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Elastic Container Service
<a name="integrating_how-services-use-secrets_ecs-sc"></a>

Amazon Elastic Container Service (Amazon ECS) 為全受管容器協同運作服務，可讓您輕鬆部署、管理和擴展容器化應用程式。您可以參考 Secrets Manager 秘密，將敏感資料插入容器中。如需詳細資訊，請參閱*《Amazon Elastic Container Service 開發人員指南》*中的下列頁面：
+ [教學課程：使用 Secrets Manager 秘密指定敏感資料](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-tutorial.html)
+ [透過應用程式以程式設計方式擷取秘密](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-app-secrets-manager.html)
+ [透過環境變數擷取秘密](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-envvar-secrets-manager.html)
+ [擷取記錄組態的秘密](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-logconfig.html)

Amazon ECS 支援 FSx for Windows File Server 容器磁碟區。Amazon ECS 使用儲存在 Secrets Manager 秘密中的憑證，用於網域加入 Active Directory 並連接 FSx for Windows File Server 檔案系統。如需詳細資訊，請參閱*《Amazon Elastic Container Service 開發人員指南》*中的[教學課程：將 FSx for Windows File Server 檔案系統搭配 Amazon ECS 使用](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/tutorial-wfsx-volumes.html)，以及 [FSx for Windows File Server 磁碟區](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html)。

您可以在需要身分驗證的私有登錄檔中參考容器映像 AWS ，方法是使用 Secrets Manager 秘密搭配登錄檔登入資料。如需詳細資訊，請參閱*《Amazon Elastic Container Service 開發人員指南》*中的[任務的私有登錄檔身分驗證](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html)。

當您使用 Amazon ECS Service Connect 時，Amazon ECS 會使用 Secrets Manager [受管秘密](service-linked-secrets.md)來存放 AWS 私有憑證授權單位 TLS 憑證。存放秘密的成本會包含在 Amazon ECS 的費用中。若要更新秘密，您必須使用 Amazon ECS 而非 Secrets Manager。如需詳細資訊，請參閱《*Amazon Elastic Container Service 開發人員指南*》中的 [TLS with Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-tls.html)。