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

后端 未结 10 1691
时光说笑
时光说笑 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:24

    I realize this is an older thread, but I stumbled on it after seeing the error the OP mentioned while following this tutorial.

    Changing to an ecs-optimized AMI image did not help. My VPC already had a route 0.0.0.0/0 pointing to the subnet. My instances were added to the correct cluster, and they had the proper permissions.

    Thanks to @sanath_p's link to this thread, I found a solution and took these steps:

    1. Copied my Autoscaling Group's configuration
    2. Set IP address type under the Advanced settings to "Assign a public IP address to every instance"
    3. Updated my Autoscaling Group to use this new configuration.
    4. Refreshed my instances under the Instance refresh tab.

提交回复
热议问题