diff --git a/src/deployments/cdk/toolkit.ts b/src/deployments/cdk/toolkit.ts index d84432cc6..201dedbc0 100644 --- a/src/deployments/cdk/toolkit.ts +++ b/src/deployments/cdk/toolkit.ts @@ -261,7 +261,7 @@ export class CdkToolkit { this.deploymentLog(stack, 'Disabling termination protection'); await cfn .updateTerminationProtection({ - StackName: stack.id, + StackName: stack.stackName, EnableTerminationProtection: false, }) .promise(); @@ -352,7 +352,7 @@ export class CdkToolkit { this.deploymentLog(stack, 'Disabling termination protection'); await cfn .updateTerminationProtection({ - StackName: stack.id, + StackName: stack.stackName, EnableTerminationProtection: false, }) .promise();