Skip to content

Commit f93a132

Browse files
authored
Fix wrong argument passed to updateTerminationProtection function (#1197)
The updateTerminationProtection function is getting a wrong argument "stack.id" which resulting the termination protection for stack not lifted and deletion of stack fail.
1 parent 3ff53c9 commit f93a132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deployments/cdk/toolkit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class CdkToolkit {
261261
this.deploymentLog(stack, 'Disabling termination protection');
262262
await cfn
263263
.updateTerminationProtection({
264-
StackName: stack.id,
264+
StackName: stack.stackName,
265265
EnableTerminationProtection: false,
266266
})
267267
.promise();
@@ -352,7 +352,7 @@ export class CdkToolkit {
352352
this.deploymentLog(stack, 'Disabling termination protection');
353353
await cfn
354354
.updateTerminationProtection({
355-
StackName: stack.id,
355+
StackName: stack.stackName,
356356
EnableTerminationProtection: false,
357357
})
358358
.promise();

0 commit comments

Comments
 (0)