Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't create snapshot on stack deletion in CloudFormation

How can I disable snapshot creation when I delete a CloudFormation stack?

I create an Aurora DB Cluster in my stack, and when I try to delete it I often get this error and I can't completely delete the stack:

CREATE_FAILED AWS::RDS::DBClusterSnapshot Cannot create more than 100 manual snapshots

I don't want a snapshot at all.

like image 911
sashoalm Avatar asked Feb 01 '26 02:02

sashoalm


1 Answers

Set "DeletionPolicy" : "Delete" for your RDSDBCluster resource in CFT.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html

like image 141
Asdfg Avatar answered Feb 03 '26 19:02

Asdfg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!