-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Closed
Copy link
Labels
@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines libraryclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Description
The error message should recommend to bump the CDK CLI version and deploy it, before updating the CDK library version.
Use Case
CDK Pipelines fails to self-mutate when upgrading CDK library version before the pinned CDK CLI version. The reason is that build stage produces cloud assembly using the new CDK library version, but the self-mutate stage still uses the older pinned CDK CLI version.
Proposed Solution
Check at synth time (e.g., using Aspects) whether cdkCliVersion was used. If so, compare the specified CDK CLI version with the CDK library version of the project.
Currently, if CDK CLI and CDK library versions are upgraded at the same time, the workaround is to re-deploy the pipeline manually.
Other
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
larskinder
Metadata
Metadata
Assignees
Labels
@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines libraryclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI