Skip to content

Commit 7418929

Browse files
author
AWS
committed
AWS CloudFormation Update: Added DeletionMode FORCE_DELETE_STACK for deleting a stack that is stuck in DELETE_FAILED state due to resource deletion failure.
1 parent 7a0ff7e commit 7418929

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS CloudFormation",
4+
"contributor": "",
5+
"description": "Added DeletionMode FORCE_DELETE_STACK for deleting a stack that is stuck in DELETE_FAILED state due to resource deletion failure."
6+
}

services/cloudformation/src/main/resources/codegen-resources/service-2.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"apiVersion":"2010-05-15",
55
"endpointPrefix":"cloudformation",
66
"protocol":"query",
7+
"protocols":["query"],
78
"serviceFullName":"AWS CloudFormation",
89
"serviceId":"CloudFormation",
910
"signatureVersion":"v4",
@@ -2359,6 +2360,10 @@
23592360
"ClientRequestToken":{
23602361
"shape":"ClientRequestToken",
23612362
"documentation":"<p>A unique identifier for this <code>DeleteStack</code> request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to delete a stack with the same name. You might retry <code>DeleteStack</code> requests to ensure that CloudFormation successfully received them.</p> <p>All events initiated by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p> <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>"
2363+
},
2364+
"DeletionMode":{
2365+
"shape":"DeletionMode",
2366+
"documentation":"<p>Specifies the deletion mode for the stack. Possible values are:</p> <ul> <li> <p> <code>STANDARD</code> - Use the standard behavior. Specifying this value is the same as not specifying this parameter.</p> </li> <li> <p> <code>FORCE_DELETE_STACK</code> - Delete the stack if it's stuck in a <code>DELETE_FAILED</code> state due to resource deletion failure.</p> </li> </ul>"
23622367
}
23632368
},
23642369
"documentation":"<p>The input for <a>DeleteStack</a> action.</p>"
@@ -2434,6 +2439,13 @@
24342439
"members":{
24352440
}
24362441
},
2442+
"DeletionMode":{
2443+
"type":"string",
2444+
"enum":[
2445+
"STANDARD",
2446+
"FORCE_DELETE_STACK"
2447+
]
2448+
},
24372449
"DeletionTime":{"type":"timestamp"},
24382450
"DeploymentTargets":{
24392451
"type":"structure",
@@ -4250,7 +4262,7 @@
42504262
"members":{
42514263
"Summaries":{
42524264
"shape":"StackInstanceResourceDriftsSummaries",
4253-
"documentation":"<p>A list of <code>StackInstanceResourceDriftSummary</code> structures that contain information about the specified stack instances.</p>"
4265+
"documentation":"<p>A list of <code>StackInstanceResourceDriftsSummary</code> structures that contain information about the specified stack instances.</p>"
42544266
},
42554267
"NextToken":{
42564268
"shape":"NextToken",
@@ -6118,6 +6130,10 @@
61186130
"shape":"RetainExceptOnCreate",
61196131
"documentation":"<p>When set to <code>true</code>, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of <code>Retain</code>.</p> <p>Default: <code>false</code> </p>"
61206132
},
6133+
"DeletionMode":{
6134+
"shape":"DeletionMode",
6135+
"documentation":"<p>Specifies the deletion mode for the stack. Possible values are:</p> <ul> <li> <p> <code>STANDARD</code> - Use the standard behavior. Specifying this value is the same as not specifying this parameter.</p> </li> <li> <p> <code>FORCE_DELETE_STACK</code> - Delete the stack if it's stuck in a <code>DELETE_FAILED</code> state due to resource deletion failure.</p> </li> </ul>"
6136+
},
61216137
"DetailedStatus":{
61226138
"shape":"DetailedStatus",
61236139
"documentation":"<p>The detailed status of the resource or stack. If <code>CONFIGURATION_COMPLETE</code> is present, the resource or resource configuration phase has completed and the stabilization of the resources is in progress. The stack sets <code>CONFIGURATION_COMPLETE</code> when all of the resources in the stack have reached that event. For more information, see <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html\">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p>"
@@ -7097,7 +7113,7 @@
70977113
},
70987114
"ConcurrencyMode":{
70997115
"shape":"ConcurrencyMode",
7100-
"documentation":"<p>Specifies how the concurrency level behaves during the operation execution.</p> <ul> <li> <p> <code>STRICT_FAILURE_TOLERANCE</code>: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value of <code>FailureToleranceCount</code> +1. The initial actual concurrency is set to the lower of either the value of the <code>MaxConcurrentCount</code>, or the value of <code>MaxConcurrentCount</code> +1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.</p> <p>If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.</p> </li> <li> <p> <code>SOFT_FAILURE_TOLERANCE</code>: This option decouples <code>FailureToleranceCount</code> from the actual concurrency. This allows stack set operations to run at the concurrency level set by the <code>MaxConcurrentCount</code> value, or <code>MaxConcurrentPercentage</code>, regardless of the number of failures.</p> </li> </ul>"
7116+
"documentation":"<p>Specifies how the concurrency level behaves during the operation execution.</p> <ul> <li> <p> <code>STRICT_FAILURE_TOLERANCE</code>: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value of <code>FailureToleranceCount</code> +1. The initial actual concurrency is set to the lower of either the value of the <code>MaxConcurrentCount</code>, or the value of <code>FailureToleranceCount</code> +1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior.</p> <p>If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.</p> </li> <li> <p> <code>SOFT_FAILURE_TOLERANCE</code>: This option decouples <code>FailureToleranceCount</code> from the actual concurrency. This allows stack set operations to run at the concurrency level set by the <code>MaxConcurrentCount</code> value, or <code>MaxConcurrentPercentage</code>, regardless of the number of failures.</p> </li> </ul>"
71017117
}
71027118
},
71037119
"documentation":"<p>The user-specified preferences for how CloudFormation performs a stack set operation.</p> <p>For more information about maximum concurrent accounts and failure tolerance, see <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options\">Stack set operation options</a>.</p>"

0 commit comments

Comments
 (0)