使用 AWS CloudFormation 启动 Amazon Elastic Container Service (Amazon ECS) 资源 (AWS::ECS::Service) 时收到一条错误消息。
简短描述
如果使用的是 Classic Load Balancer,将收到以下类似错误消息:
"12:21:48 UTC+0100 CREATE_FAILED AWS::ECS::Service ECSService Unable to assume role and validate the listeners configured on your load balancer.Please verify the role being passed has the proper permissions."
如果使用的是 Application Load Balancer,将收到以下类似错误消息:
"12:21:48 UTC+0100 CREATE_FAILED AWS::ECS::Service ECSService Unable to assume role and validate the specified targetGroupArn.请验证所传递的 ECS 服务角色是否具有正确的权限。”
如果使用指定实例配置文件的独立 AWS Identity and Access Management (IAM) 策略资源创建 Amazon ECS 服务,Amazon ECS 服务可能会失败并返回一条错误消息。
解决方法
要解决 Classic Load Balancer 和Application Load Balancer 的这一错误,请尝试以下一个或多个解决办法:
</ul