CloudFormation proactive controls stop a table deletion
One change, previewed three times: warned by default, stopped in FAIL mode, allowed with the per-operation override.
AWS Cloud
Region us-east-1
AWS-managed proactive controls
Developer or AI agent
runs the POC script
AWS CloudFormation
one stack, three change sets
DynamoDBTableInUseRemoved
WARN, on by default
DynamoDBTableRemoved
FAIL, this stack only
Amazon CloudWatch
table activity, last 24 hours
Amazon DynamoDB
orders table, 3 items
1
2
3
4
5
1
2
3
4
5
LINES
Stack operation
Check before any change
Reads activity
Deletion stopped
FLOW
The script creates a stack with one table, then previews removing the table.
CloudFormation runs the enabled controls before any resource changes.
The in-use control reads CloudWatch activity and reports a WARN finding.
The removal control, in FAIL for this stack only, fails the change set.
With DisableValidation the controls are skipped and the table is deleted.