我需要原则上使用CFN设置假定角色和iam角色来限制存储桶使用cloudformation?
最佳答案
您可能需要 documetation 中提到的环境变量.
ECS_ENABLE_TASK_IAM_ROLE=true
Enables IAM roles for tasks for containers with the bridge and default network modes.
ECS_ENABLE_TASK_IAM_ROLE_NETWORK_HOST=true
Enables IAM roles for tasks for containers with the host network mode. This variable is only supported on agent versions 1.12.0 and later.
关于amazon-web-services - AWS ECS 使用 CloudFormation 承担角色。在哪里获得部署在 ECS 中的 Docker 微服务的角色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58657590/