ECS Container not recognizing EC2 instances after updating AMI

0

Last night I received a notification that I needed to update the ECS Agent on my AWS ECS instances from 1.24.0 to 1.25.0

I did this by updating the launch configuration, assigning the launch configuration to the Auto Scaling Group and ensured the new EC2 instance is up and running.

The new EC2 Instance is running the ECS Agent, the security group is set properly, it's even running the services/tasks I have set up for it to run. However in the ECS Cluster the 2nd container is NOT showing up. So while I should have 2 containers running, it only recognizes 1 container and doesn't recognize that the services are spun up and working on the new EC2 Instance. I can even visit the EC2 instance on the correct ports (AWS assigned) and verify the tasks are running properly. What must I do to get the Cluster to recognize the new EC2 Instances?

I can also "scale" the cluster by using the scale button in the cluster's definitions and it'll turn on ec2 instances/turn them off just fine, but the number of containers stays constant at 1 even though I can have 5 EC2 instances running.

brandon
已提问 5 年前487 查看次数
1 回答
0

I downgraded the AMI to the 1.24.0 and it still runs, I still need to figure out how to upgrade the launching AMI to 1.25.0 but I can manually update once the new instance is launched.

brandon
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则