stack policy
A JSON document on a CloudFormation stack that blocks updates to chosen resources unless it is overridden for one update.
In more detail
It protects critical resources, such as a production database, from being replaced or deleted by a stack update. It does not stop someone changing the resource outside CloudFormation. Termination protection is a separate setting that blocks deleting the whole stack.
Related terms
- AWS CloudFormation — AWS's own infrastructure-as-code service, which creates resources from YAML or JSON templates.
- termination protection — A CloudFormation stack setting that refuses any attempt to delete the stack until someone switches it off.
Taught in
- CloudFormation In Depth: Replace Or Update? — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep