Skip to content

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

@alehuo

Description

@alehuo

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)
  • aws-cdk-lib version 2.68.0
  • @cloudcomponents/cdk-blue-green-container-deployment version 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions