AWS ECS Error when running task: No Container Instances were found in your cluster

后端 未结 10 1694
时光说笑
时光说笑 2020-11-28 04:02

Im trying to deploy a docker container image to AWS using ECS, but the EC2 instance is not being created. I have scoured the internet

10条回答
  •  情书的邮戳
    2020-11-28 04:20

    If you have come across this issue after creating the cluster

    Go the ECS instance in the EC2 instances list and check the IAM role that you have assigned to the instance. You can identify the instances easily with the instance name starts with ECS Instance

    After that click on the IAM role and it will direct you to the IAM console. Select the AmazonEC2ContainerServiceforEC2Role policy from the permission policy list and save the role.

    Your instances will be available in the cluster shortly after you save it.

提交回复
热议问题