|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
An AWS CloudFormation stack is a collection of AWS resources you want to manage together. You can create, list, and delete stacks.
The stack is a collection of AWS resources. With AWS CloudFormation you can do the following with your stacks:
Create an AWS CloudFormation stack using
cfn-create-stack, providing a name, and specifying a
template that defines the stack.
Track the progress of the create operation using
cfn-describe-stack-events. AWS CloudFormation
optimizes the order of member resource creation during stack creation, taking into account resource
dependencies, so it's not possible to predict the order in which each resource will be created. The
cfn-describe-stack-events command enables you to monitor the progress.
List your running stacks using
cfn-list-stacks, filtering by a specific stack name or stack status. Only running
stacks and stacks in the process of being created or deleted are listed with
cfn-describe-stacks. You can use
cfn-list-stacks to list stacks that
have any status (even if they have been deleted within the past 90 days), filtering on the status if you
Itemize the contents of a stack using
cfn-describe-stack-resources. You can do this
even when a stack is being created or deleted, enabling you to see the state of individual member
View the history of the events produced by a stack using
optionally filtering by a specific stack name. You can see events for a deleted stack for up to 90
Delete a stack using
cfn-delete-stack. When you delete a stack, each of its member
resources is deleted as well. As with the stack creation, AWS CloudFormation optimizes the deletion sequence, so the
order isn't predictable. You can track the progress of the deletion using
cfn-describe-stack-events and list deleted stacks using
AWS CloudFormation makes sure all member resources are created or deleted as appropriate. Because AWS CloudFormation treats the members of a stack as a single unit, they must all be created successfully for the stack to be created. If for any reason a member resource cannot be created, AWS CloudFormation rolls the stack back and automatically deletes the member resources that were created.
You are charged for the stack resources for the time they were operating (even if you deleted the stack right away).
For more information, see Modifying AWS CloudFormation Templates.