The Delete CloudFormation Stacks action is used to delete one or more CloudFormation stacks.
For example, at 8pm, all development stacks can be deleted.
The Delete CloudFormation Stacks action includes a "test mode" as a way of determining which items will be deleted without actually deleting the items. This way, you can fine tune your action without concern for deleting the wrong items. Test Mode is on by default.
When test mode is enabled, execute your action normally then check the action logs to verify that only items that should have been deleted would have been deleted, and that items that should not have been deleted would not have been deleted.
When you are satisfied, disable Test Mode.
Please see Common Action Settings for a description of settings common to all action types.
Stack Identification Method
Indicates the method used to select CloudFormation stacks. Valid choices are:
By Stack Name
By Resource Tag
Required when Stack Identification Method is set to "By Stack Name". Indicates the comparison method against the stack's name. Those with matching stack names will be deleted.
Resource Tag Name
Required when Stack Identification Method is "By Resource Tag". Indicates the name of the resource tag used for comparison.
Resource Tag Value
Required when Stack Identification Method is "By Resource Tag". Indicates the comparison method against the resource tag named by Resource Tag Name. Those with matching tag values will be deleted.
Minimum Stack Age
Indicate whether the stack must be of a minimum age in order to be deleted.
Specifies the minimum age (in days) of stacks to be deleted.
Minimum Days Since Last Update
Indicate whether the stack must not have been updated within a minimum number of days in order to be deleted.
Last Updated More Than
Stacks that have been updated more recently than this number of days will not be deleted.
Enables and disabled Test Mode (see above).
Amazon Commands Used
The following Amazon AWS commands are used. The access key should have permission to execute all of them.