How do I resolve the "[AWS service] was unable to place a task because no container instance met all of its requirements" error in Amazon ECS?

Last updated: 2019-07-03

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." How can I resolve this error?

Short Description

You can receive this error due to one of the following issues:

  • No container instances were found in your cluster
  • The port needed by the task is already in use
  • Not enough memory for your tasks
  • Not enough CPU units for your container instance
  • Not enough available elastic network interface (ENI) attachment points
  • A required attribute is missing for your container instance

For more information on these issues, see Service Event Messages.

Note: If you didn't receive the preceding error message, choose an article based on one of the following error messages that you received:

Resolution

To resolve the error, choose a resolution based on one of the following issues:


Did this article help you?

Anything we could improve?


Need more help?