amazon-web-services - AWS ECS 使用 CloudFormation 承担角色。在哪里获得部署在 ECS 中的 Docker 微服务的角色?

标签 amazon-web-services amazon-s3 aws-sdk aws-cloudformation amazon-ecs

我需要原则上使用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/

相关文章:

node.js - 在 AWS S3 存储桶上托管 React 应用程序时,无法使用代理重定向到 Node 服务器

amazon-web-services - 上传开始的 AWS S3 事件通知

aws-sdk - 如何从 NodeJS 应用程序 (lambda) 将记录放入 Kinesis 流

.net - 是否有可以使用 AWS V4 签名签署请求的 .NET 库?

java - AWS, Spring 启动,Tomcat : Session replication

amazon-web-services - 全局二级索引上的 AppSync 查询

AWS RDS 上的 Mysql 模式显示数据库元数据中不可用的表(information_schema)

amazon-web-services - AWS 中的图像保存在哪里?

java - 使用 AWS TransferManager 上传时无法找到堆栈跟踪

javascript - 即使使用了 Forever JS,Node JS 应用程序也会自行崩溃