Closed chughrahul closed 8 months ago
Hello, that seems to indicate that it can't find a valid ECS instance to run the service onto. I presume that you already have EC2 instances registered as ECS instances to deploy containers onto?
Yes I've two EC2 instances connected to my ECS cluster for deployment. And there is enough memory available that is required by the service to run. But still it is not able to start.
hello @chughrahul, sorry on the delay, I was traveling back from holiday. You will need to look at the task definition requirements and the capabilities enabled on your ECS instances to find which one is not activated/available on your EC2
Hi @JohnPreston
I'm not providing any external task definition requirements. These are getting generated by the compose-x only. Also if I'm adding a task definition/service by hand it works completely fine. Can you please guide me on which requirements can be causing this as I've already looked through the requirements of task definition and attributes in the ecs container but couldn't find anything there. Also the command ecs-cli check-attributes --container-instances <ID> --task-def Test-Image --cluster Rahul-Backend-Staging --region ap-south-1
is returning with -
Container Instance Missing Attributes
Rahul-Backend-Staging None
Hello @chughrahul Did you ever get to have this sorted out? This isn't something that I was able to reproduce :/
I think there was some missing attribute that Lookup
couldn't find. However, when I tried with new cluster, it didn't give any error.
My docker compose file -
I'm using the command
ecs-compose-x up -n test -f docker-compose.yml
. It is able to push to a cloudformation and made service in cluster. However immediately after that service is giving error -