amazon-ecs-deploy-task-definition
amazon-ecs-deploy-task-definition copied to clipboard
Action failing with error on AWS console that container doesn't have the agent connected
The GitHub action will periodically fail, but succeed in some cases. The error on the GitHub Action page is:
Error: Resource is not in the state servicesStable
This is the error on the AWS ECS Service > Events tab:
service my-service was unable to place a task because no container instance met all of its requirements. The closest matching container-instance ****af580523fe1022f095e doesn't have the agent connected. For more information, see the Troubleshooting section.
I ssh'ed into the ec2 instance and checked the ecs service was running with sudo systemctl status ecs -l
and it is active.
I have the same issue