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년 전481회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠