AWS › IaC (CloudFormation)
What is a CloudFormation stack, and how does it relate to the resources defined in a template?
BeginnerAnswer
A CloudFormation stack is the actual collection of AWS resources that get created when you deploy a template, and CloudFormation treats all resources within a stack as a single managed unit, meaning if you update the stack, CloudFormation calculates exactly what needs to change, and if you delete the stack, CloudFormation automatically cleans up every resource that was created as part of it, preventing orphaned resources from being accidentally left behind.
aws cloudformation describe-stacks --stack-name my-stackReal-world example A developer deletes an entire test environment, consisting of a dozen different resources, with a single command by deleting its CloudFormation stack, confident that CloudFormation will properly clean up every associated resource rather than needing to manually track and delete each one individually.