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: 2022-08-01

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."

Short description

You can receive this error due to one or more of the following reasons:

  • 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 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 your use case:

Container Instance  Missing Attributes
example-instance    None

Did this article help?


Do you need billing or technical support?