aws-codedeploy: Unable to update custom deployment config due to InstallLatestAwsSdk change throwing config already exists #25838
Labels
@aws-cdk/aws-codedeploy
Related to AWS CodeDeploy
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
In #23591, InstallLatestAwsSdk had its default changed to false for custom resources. There is a flag that allows overriding the default, but that is only applicable for when creating a custom resource directly. The change also updated several L3 constructs such as CustomLambdaDeploymentConfig that create a custom resource and hardcoded the InstallLatestAwsSdk to false. The flag is only applied if a prop is not assigned so that behavior cannot be overridden. This is causing the resource to be updated but since the name is not changed, it tries to create the same deployment config which fails. We could rename the deployment config, but this is not rollback safe so it would be high risk. We could also remove traffic shifting altogether then update the version and add back traffic shifting, but this is also high risk and time consuming.
Expected Behavior
Be able to update the the aws-cdk version without the custom resource trying update and create a new deployment config
Current Behavior
The custom resource is updated since the InstallLatestAwsSdk is changing which causes the resource to try to create a new deployment config even though the deployment config is not changing
Reproduction Steps
Deploy with cdk version 2.59 or earlier and then try to deploy again with version 2.60 or greater
Possible Solution
Some options are:
Additional Information/Context
No response
CDK CLI Version
(not sure if that's different from aws-cdk)
Framework Version
No response
Node.js Version
16.x
OS
mac
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: