Home > Software design >  Can I use Cloud formation stack name once it is deleted?
Can I use Cloud formation stack name once it is deleted?

Time:03-28

I accidently deleted the cloud formation stack, I do not need the reosources, but have a requirements to use the same cloudformation stack name, Can I get back the stack (without resources it's fine) ?

CodePudding user response:

Yes. Stack names are "reusable".

Each stack deployment is identified by its own unique Stack ID. The stack ID lets CloudFormation keep track of the stack history across multiple deployments if the same stack name.

# a stack id
arn:aws:cloudformation:us-east-1:123456789012:stack/MyStack/737e1e20-a947-11ec-871d-2202e855dcb5

When you call the aws cloudformation list-stacks API, you get a list of stack deployments by ID, including those with a DELETE_COMPLETE status.

  • Related