Skip to content

bug: ECS cluster not removed properly using Pulumi #6172

Closed
@SanderHagen

Description

@SanderHagen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hello, I am using Pulumi and Localstack to run a stack. I'm running into a problem with an ECS cluster. I start it using this code and it starts succesfully.

  const ecsCluster = new aws.ecs.Cluster(
    'test',
    {
      name: 'test',
    },
    {
      provider,
    },
  );

awslocal ecs describe-clusters --cluster test --region eu-central-1 shows this

{
    "clusters": [
        {
            "clusterArn": "arn:aws:ecs:eu-central-1:000000000000:cluster/test",
            "clusterName": "test",
            "status": "ACTIVE",
            "registeredContainerInstancesCount": 0,
            "runningTasksCount": 0,
            "pendingTasksCount": 0,
            "activeServicesCount": 0
        }
    ],
    "failures": []
}

But when I do pulumilocal down I get this error

    	* error waiting for ECS Cluster (arn:aws:ecs:eu-central-1:000000000000:cluster/test) to become Deleted: couldn't find resource (21 retries)```
Even though it does exist. It does however get deleted properly

### Expected Behavior

When doing `pulumilocal down` I expect the ECS cluster to be found and removed properly

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

    `docker-compose up` from repo

#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

using Pulumi

```  const ecsCluster = new aws.ecs.Cluster(
    'test',
    {
      name: 'test',
    },
    {
      provider,
    },
  );

Then pulumilocal destroy to remove the cluster

Environment

- OS: Ubuntu 22.04
- LocalStack: latest

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions