Skip to main content

stacks

Creates, updates, deletes, gets or lists a stacks resource.

Overview

Namestacks
TypeResource
Idaws.cloudformation.stacks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capabilitiesstringThe capabilities allowed in the stack.
change_set_idstringThe unique ID of the change set.
creation_timestringThe time at which the stack was created.
deletion_modestringSpecifies the deletion mode for the stack. Possible values are: STANDARD - Use the standard behavior. Specifying this value is the same as not specifying this parameter. FORCE_DELETE_STACK - Delete the stack if it's stuck in a DELETE_FAILED state due to resource deletion failure.
deletion_timestringThe time the stack was deleted.
deployment_configstringThe deployment configuration for the stack, including the deployment mode used for stack operations.
descriptionstringA user-defined description associated with the stack.
detailed_statusstringThe detailed status of the resource or stack. If CONFIGURATION_COMPLETE is present, the resource or resource configuration phase has completed and the stabilization of the resources is in progress. The StackSets CONFIGURATION_COMPLETE when all of the resources in the stack have reached that event. For more information, see Understand CloudFormation stack creation events in the CloudFormation User Guide.
disable_rollbackbooleanBoolean to enable or disable rollback on stack creation failures: true: disable rollback. false: enable rollback.
drift_informationstringInformation about whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
enable_termination_protectionbooleanWhether termination protection is enabled for the stack. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide.
last_operationsstringInformation about the most recent operations performed on this stack.
last_updated_timestringThe time the stack was last updated. This field will only be returned if the stack has been updated at least once.
notification_arnsstringAmazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
outputsstringA list of output structures.
parametersstringA list of Parameter structures.
parent_idstringFor nested stacks, the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. For more information, see Nested stacks in the CloudFormation User Guide.
retain_except_on_createbooleanWhen set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that's associated with the stack. During a stack operation, CloudFormation uses this role's credentials to make calls on your behalf.
rollback_configurationstringThe rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
root_idstringFor nested stacks, the stack ID of the top-level stack to which the nested stack ultimately belongs. For more information, see Nested stacks in the CloudFormation User Guide.
stack_idstringUnique identifier of the stack.
stack_namestringThe name associated with the stack.
stack_statusstringCurrent status of the stack.
stack_status_reasonstringSuccess/failure message associated with the stack status.
tagsstringA list of Tags that specify information about the stack.
timeout_in_minutesintegerThe amount of time within which stack creation should complete.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_stacksselectStackName, regionNextTokenReturns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. If the stack doesn't exist, a ValidationError is returned.
list_stacksselectregionNextToken, StackStatusFilterReturns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).
create_stackinsertStackName, regionTemplateBody, TemplateURL, Parameters, DisableRollback, RollbackConfiguration, TimeoutInMinutes, NotificationARNs, Capabilities, ResourceTypes, RoleARN, OnFailure, StackPolicyBody, StackPolicyURL, Tags, ClientRequestToken, EnableTerminationProtection, RetainExceptOnCreate, DeploymentConfig, DisableValidationCreates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack through the DescribeStacks operation. For more information about creating a stack and monitoring stack progress, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
update_termination_protectionupdateEnableTerminationProtection, StackName, regionUpdates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
update_stackupdateStackName, regionTemplateBody, TemplateURL, UsePreviousTemplate, StackPolicyDuringUpdateBody, StackPolicyDuringUpdateURL, Parameters, Capabilities, ResourceTypes, RoleARN, RollbackConfiguration, StackPolicyBody, StackPolicyURL, NotificationARNs, Tags, DisableRollback, ClientRequestToken, RetainExceptOnCreate, DeploymentConfig, DisableValidationUpdates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack through the DescribeStacks action. To get a copy of the template for an existing stack, you can use the GetTemplate action. For more information about updating a stack and monitoring the progress of the update, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.
delete_stackdeleteStackName, regionRetainResources, RoleARN, ClientRequestToken, DeletionMode, DeploymentConfigDeletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks don't show up in the DescribeStacks operation if the deletion has been completed successfully. For more information about deleting a stack, see Delete a stack from the CloudFormation console in the CloudFormation User Guide.
cancel_update_stackexecStackName, regionClientRequestTokenCancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration. You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.
continue_update_rollbackexecStackName, regionRoleARN, ResourcesToSkip, ClientRequestTokenContinues rolling back a stack from UPDATE_ROLLBACK_FAILED to UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state) and then try to update the stack again. A stack enters the UPDATE_ROLLBACK_FAILED state when CloudFormation can't roll back all changes after a failed stack update. For example, this might occur when a stack attempts to roll back to an old database that was deleted outside of CloudFormation. Because CloudFormation doesn't know the instance was deleted, it assumes the instance still exists and attempts to roll back to it, causing the update rollback to fail. For more information, see Continue rolling back an update in the CloudFormation User Guide. For information for troubleshooting a failed update rollback, see Update rollback failed.
detect_stack_driftexecStackName, regionLogicalResourceIdsDetects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackDrift to detect drift on all supported resources for a given stack, or DetectStackResourceDrift to detect drift on individual resources. For a list of stack resources that currently support drift detection, see Resource type support for imports and drift detection. DetectStackDrift can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources. When detecting drift on a stack, CloudFormation doesn't detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift directly on the nested stack itself.
detect_stack_resource_driftexecStackName, LogicalResourceId, regionReturns information about whether a resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with drift detection. Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection. Resources that don't currently support drift detection can't be checked. For a list of resources that support drift detection, see Resource type support for imports and drift detection.
import_stacks_to_stack_setexecStackSetName, regionStackIds, StackIdsUrl, OrganizationalUnitIds, OperationPreferences, OperationId, CallAsImport existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import.
rollback_stackexecStackName, regionRoleARN, ClientRequestToken, RetainExceptOnCreate, DeploymentConfigWhen specifying RollbackStack, you preserve the state of previously provisioned resources when an operation fails. You can check the status of the stack through the DescribeStacks operation. Rolls back the specified stack to the last known stable state from CREATE_FAILED or UPDATE_FAILED stack statuses. This operation will delete a stack if it doesn't contain a last known stable state. A last known stable state includes any status in a *_COMPLETE. This includes the following stack statuses. CREATE_COMPLETE UPDATE_COMPLETE UPDATE_ROLLBACK_COMPLETE IMPORT_COMPLETE IMPORT_ROLLBACK_COMPLETE
signal_resourceexecStackName, LogicalResourceId, UniqueId, regionStatusSends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource operation is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
EnableTerminationProtectionbooleanWhether to enable termination protection on the specified stack.
LogicalResourceIdstringThe logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
StackNamestringThe stack name or unique stack ID that includes the resource that you want to signal.
StackSetNamestringThe name of the StackSet. The name must be unique in the Region where you create your StackSet.
UniqueIdstringA unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
regionstringAWS region (default: us-east-1)
CallAsstringBy default, SELF is specified. Use SELF for StackSets with self-managed permissions. If you are signed in to the management account, specify SELF. For service managed StackSets, specify DELEGATED_ADMIN.
CapabilitiesarrayIn some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack. CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include resources that can affect permissions in your Amazon Web Services account, for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error. If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary. AWS::IAM::AccessKey AWS::IAM::Group AWS::IAM::InstanceProfile AWS::IAM::ManagedPolicy AWS::IAM::Policy AWS::IAM::Role AWS::IAM::User AWS::IAM::UserToGroupAddition For more information, see Acknowledging IAM resources in CloudFormation templates. CAPABILITY_AUTO_EXPAND Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation. If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability. You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs. Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified. For more information, see Perform custom processing on CloudFormation templates with template macros. Only one of the Capabilities and ResourceType parameters can be specified.
ClientRequestTokenstringA unique identifier for this RollbackStack request.
DeletionModestringSpecifies the deletion mode for the stack. Possible values are: STANDARD - Use the standard behavior. Specifying this value is the same as not specifying this parameter. FORCE_DELETE_STACK - Delete the stack if it's stuck in a DELETE_FAILED state due to resource deletion failure.
DeploymentConfigobjectThe deployment configuration for this stack operation, including the deployment mode.
DisableRollbackbooleanPreserve the state of previously provisioned resources when an operation fails. Default: False
DisableValidationbooleanSet to true to disable pre-deployment validations in changeset or stack operations. Default: false
EnableTerminationProtectionbooleanWhether to enable termination protection on the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect CloudFormation stacks from being deleted in the CloudFormation User Guide. Termination protection is deactivated on stacks by default. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
LogicalResourceIdsarrayThe logical names of any resources you want to use as filters.
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)
NotificationARNsarrayAmazon Simple Notification Service topic Amazon Resource Names (ARNs) that CloudFormation associates with the stack. Specify an empty list to remove all notification topics.
OnFailurestringDetermines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback, but not both. Although the default setting is ROLLBACK, there is one exception. This exception occurs when a StackSet attempts to deploy a stack instance and the stack instance fails to create successfully. In this case, the CreateStack call overrides the default setting and sets the value of OnFailure to DELETE. Default: ROLLBACK
OperationIdstringA unique, user defined, identifier for the StackSet operation.
OperationPreferencesobjectThe user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
OrganizationalUnitIdsarrayThe list of OU ID's to which the imported stacks must be mapped as deployment targets.
ParametersarrayA list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.
ResourceTypesarraySpecifies which resource types you can work with, such as AWS::EC2::Instance or Custom::MyCustomInstance. If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Control CloudFormation access with Identity and Access Management. Only one of the Capabilities and ResourceType parameters can be specified.
ResourcesToSkiparrayA list of the logical IDs of the resources that CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the UPDATE_FAILED state because a rollback failed. You can't specify resources that are in the UPDATE_FAILED state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason. Specify this property to skip rolling back resources that CloudFormation can't successfully roll back. We recommend that you troubleshoot resources before skipping them. CloudFormation sets the status of the specified resources to UPDATE_COMPLETE and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable. Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources. To skip resources that are part of nested stacks, use the following format: NestedStackName.ResourceLogicalID. If you want to specify the logical ID of a stack resource (Type: AWS::CloudFormation::Stack) in the ResourcesToSkip list, then its corresponding embedded stack must be in one of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED. Don't confuse a child stack's name with its corresponding logical ID defined in the parent stack. For an example of a continue update rollback operation with nested stacks, see Continue rolling back from failed nested stack updates.
RetainExceptOnCreatebooleanWhen set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
RetainResourcesarrayFor stacks in the DELETE_FAILED state, a list of resource logical IDs that are associated with the resources you want to retain. During deletion, CloudFormation deletes the stack but doesn't delete the retained resources. Retaining resources is useful when you can't delete a resource, such as a non-empty S3 bucket, but you want to delete the stack.
RoleARNstringThe Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to rollback the stack.
RollbackConfigurationobjectThe rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
StackIdsarrayThe IDs of the stacks you are importing into a StackSet. You import up to 10 stacks per StackSet at a time. Specify either StackIds or StackIdsUrl.
StackIdsUrlstringThe Amazon S3 URL which contains list of stack ids to be inputted. Specify either StackIds or StackIdsUrl.
StackPolicyBodystringStructure that contains a new stack policy body. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
StackPolicyDuringUpdateBodystringStructure that contains the temporary overriding stack policy body. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
StackPolicyDuringUpdateURLstringLocation of a file that contains the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https:​//. URLs from S3 static websites are not supported. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
StackPolicyURLstringLocation of a file that contains the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https:​//. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
StackStatusFilterarrayStack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.
StatusstringThe status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.
TagsarrayKey-value pairs to associate with this stack. CloudFormation also propagates these tags to supported resources in the stack. You can specify a maximum number of 50 tags. If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you specify an empty value, CloudFormation removes all associated tags.
TemplateBodystringStructure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
TemplateURLstringThe URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https:​//. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
TimeoutInMinutesintegerThe amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.
UsePreviousTemplatebooleanReuse the existing template that is associated with the stack that you are updating. When using templates with the AWS::LanguageExtensions transform, provide the template instead of using UsePreviousTemplate to ensure new parameter values and Systems Manager parameter updates are applied correctly. For more information, see AWS::LanguageExtensions transform. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.

SELECT examples

Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created. For more information about a stack's event history, see Understand CloudFormation stack creation events in the CloudFormation User Guide. If the stack doesn't exist, a ValidationError is returned.

SELECT
capabilities,
change_set_id,
creation_time,
deletion_mode,
deletion_time,
deployment_config,
description,
detailed_status,
disable_rollback,
drift_information,
enable_termination_protection,
last_operations,
last_updated_time,
notification_arns,
outputs,
parameters,
parent_id,
retain_except_on_create,
role_arn,
rollback_configuration,
root_id,
stack_id,
stack_name,
stack_status,
stack_status_reason,
tags,
timeout_in_minutes
FROM aws.cloudformation.stacks
WHERE StackName = '{{ StackName }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack through the DescribeStacks operation. For more information about creating a stack and monitoring stack progress, see Managing Amazon Web Services resources as a single unit with CloudFormation stacks in the CloudFormation User Guide.

INSERT INTO aws.cloudformation.stacks (
StackName,
region,
TemplateBody,
TemplateURL,
Parameters,
DisableRollback,
RollbackConfiguration,
TimeoutInMinutes,
NotificationARNs,
Capabilities,
ResourceTypes,
RoleARN,
OnFailure,
StackPolicyBody,
StackPolicyURL,
Tags,
ClientRequestToken,
EnableTerminationProtection,
RetainExceptOnCreate,
DeploymentConfig,
DisableValidation
)
SELECT
'{{ StackName }}',
'{{ region }}',
'{{ TemplateBody }}',
'{{ TemplateURL }}',
'{{ Parameters }}',
'{{ DisableRollback }}',
'{{ RollbackConfiguration }}',
'{{ TimeoutInMinutes }}',
'{{ NotificationARNs }}',
'{{ Capabilities }}',
'{{ ResourceTypes }}',
'{{ RoleARN }}',
'{{ OnFailure }}',
'{{ StackPolicyBody }}',
'{{ StackPolicyURL }}',
'{{ Tags }}',
'{{ ClientRequestToken }}',
'{{ EnableTerminationProtection }}',
'{{ RetainExceptOnCreate }}',
'{{ DeploymentConfig }}',
'{{ DisableValidation }}'
RETURNING
line_items
;

UPDATE examples

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.

UPDATE aws.cloudformation.stacks
SET
-- No updatable properties
WHERE
EnableTerminationProtection = '{{ EnableTerminationProtection }}' --required
AND StackName = '{{ StackName }}' --required
AND region = '{{ region }}' --required
RETURNING
line_items;

DELETE examples

Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks don't show up in the DescribeStacks operation if the deletion has been completed successfully. For more information about deleting a stack, see Delete a stack from the CloudFormation console in the CloudFormation User Guide.

DELETE FROM aws.cloudformation.stacks
WHERE StackName = '{{ StackName }}' --required
AND region = '{{ region }}' --required
AND RetainResources = '{{ RetainResources }}'
AND RoleARN = '{{ RoleARN }}'
AND ClientRequestToken = '{{ ClientRequestToken }}'
AND DeletionMode = '{{ DeletionMode }}'
AND DeploymentConfig = '{{ DeploymentConfig }}'
;

Lifecycle Methods

Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration. You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.

EXEC aws.cloudformation.stacks.cancel_update_stack
@StackName='{{ StackName }}' --required,
@region='{{ region }}' --required,
@ClientRequestToken='{{ ClientRequestToken }}'
;