aws-sam-cli
aws-sam-cli copied to clipboard
enable-termination-protection flag
Description:
CloudFormation's create-stack offers enable-termination-protection flag to protect a stack from getting deleted.
Is it possible to offer that flag in sam?
some info about possible implementation.
SAM CLI uses create-change-set API to create stacks, which does not have enable-termination-protection flag as create-stack does. If we choose to add this flag, we might need to call update-termination-protection API after creation
Still using a workaround chaining the sam calls with aws cloudformation update-termination-protection --enable-termination-protection --stack-name "$STACK_NAME".