ECS Container not recognizing EC2 instances after updating AMI


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.

feita há 5 anos488 visualizações
1 Resposta

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.

respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas