How do I resolve "the closest matching container-instance container-instance-id encountered error 'AGENT'" error for my service in Amazon ECS?
2 minute read
When I try to place a task in Amazon Elastic Container Service (Amazon ECS), I receive the following error: "[AWS service] was unable to place a task because no container instance met all of its requirements. The closest matching container-instance container-instance-id encountered error 'AGENT'."
You can receive this error when the Amazon ECS container agent running on the container instance designated for task placement is disconnected.
Note: If you didn't receive the preceding error message, choose an article based on one of the following error messages that you received: