AWS CloudFormation stack fails create due to resource already exists in stack that has been deleted

4.4k Views Asked by At

When creating a new CloudFormation stack, CREATE fails with the following error:

[RESOURCE] already exists in stack [DELETE_COMPLETE status stack ARN]

I have already verified the resource is no longer in the AWS account.

1

There are 1 best solutions below

1
On

It's happening with me too (us-east-1), since yesterday (2020-09-30). I tried to redeploy (the same stack) several times WITHOUT SUCCESS.

I also tried:

  • list the stack arn on awscli to try to delete manually
  • list the old resource arn, to try to force deleting the old stack on awscli ... all WITHOUT SUCCESS

It seems to be an AWS bug, I would suggest you opening a ticket on AWS support to try to solve it (I'm doing it)

One alternative is to create a new stack changing the resource name (here we usually use a suffix on the resource, based on stackname variable to have multiples deploys stacks)