cloudcomponents / cdk-constructs

A collection of higher-level reusable cdk constructs
MIT License
624 stars 104 forks source link

Getting error "UPDATE_ROLLBACK_COMPLETE: Modifying service token is not allowed." when upgrading from CDK v1 to CDK v2 #197

Open alehuo opened 1 year ago

alehuo commented 1 year ago

I'm currently trying to upgrade @cloudcomponents/cdk-blue-green-container-deployment to a CDK v2 supported version. When doing the required changes to CDK code and deploying, the following error occurs:

11:03:33 AM | UPDATE_FAILED        | Custom::BlueGreenService            | EcsServiceCustomResourceFFFFFFFF
Modifying service token is not allowed.

 ❌  app-stack failed: Error: The stack named app-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Modifying service token is not allowed.
    at FullCloudFormationDeployment.monitorDeployment (/node_modules/aws-cdk/lib/index.js:371:10236)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async deployStack2 (/node_modules/aws-cdk/lib/index.js:374:145469)
    at async /node_modules/aws-cdk/lib/index.js:374:128787
    at async run (/node_modules/aws-cdk/lib/index.js:374:126793)