Ecs error: "An error (ClusterNotFoundException) occurred while calling ..."

I defined a cluster in ECS and could not clean it correctly. I have completed the EC2 instances associated with this cluster that are being recreated. Clusters / repositories / services do not appear on the ECS console. In fact, when I go to this service through the console, I see the startup wizard. I started digging with the CLI.

When issuing commands:

  • aws ecs list-container instances
  • aws ecs list-services
  • aws ecs list-tasks

I see the message An error occurred (ClusterNotFoundException) when the operation ____: Cluster was not found. (even when turning on my region).

When issuing a command:

  • aws ecs description-clusters

I get the result:

{ "clusters": [], "failures": [ { "arn": "arn:aws:ecs:us-east-1:123456789012:cluster/default", "reason": "MISSING" } ] } 

Any ideas on how I can clear my mess would be greatly appreciated. Thanks!

+5
source share
1 answer

In the configuration, CloudFormation was specified in which this cluster was specified. Although this cluster was not visible in the ECS console, the CloudFormation stack created EC2 instances using the remote cluster configuration. The CloudFormation stack was responsible for these EC2 instances. Removing the stack solved this problem.

+1
source

All Articles