Deletion Policy
- Delete
- Snapshot (Supported services only)
- Retain
More like lifecycle policy from terraform
Deletion would not work on S3 if it has objects
Either manually delete the objects or develop a custom resource that deletes all objects before deleting the bucket
Stack policy
- By default all stack updates are applied for all resource
- Stack policy dictates what are allowed on updation
- Protect resources against accidental updates
Creation Policy
- Used with resources like
AWS::EC2::Instance. - Works with
cfn-signalto delay resource success status until signaling is complete. - Ensures app/config is properly set before marking complete.
AWS::EC2::InstanceAWS::AutoScaling::AutoScalingGroup
Termination protection
- Prevent accidental deletion
- once activated, deletion is prompted termination protection. If you have necessary permission you can delete the resource by editing teh termination