aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.66k stars 3.92k forks source link

Issue deploying CDK without the custom resource updating. #30094

Open jacido opened 6 months ago

jacido commented 6 months ago

Describe the bug

A CDK custom resource is unexpectedly updating causing a dependency issue. They have not made any changes to the custom resource change set. and they do not want it to change.

Error: Received response status [FAILED] from custom resource. Message returned: Package @aws-sdk/client-kafka does not exist. (RequestId: XXXXXXX-39c5-XXXe-8160-XXX1821XXXXX)

Expected Behavior

Not expected behavior.

Current Behavior

The stack failed to deploy due to dependency issues. The this stack has an EXPORT that is being used many consuming stacks it's the custom resource named ClusterBootstrapBrokersBootstrapBrokerStringXXXXXXXXXXXX that is being updated causing the dependency issue. They have not made any changes to the custom resource change set. and they do not want it to change.

Reproduction Steps

TBD

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.118

Framework Version

No response

Node.js Version

nodejs18.x

OS

N/A

Language

Python

Language Version

Python

Other information

Attached screenshot of cdk diff results comparing code to being deployed and the current production state. They are using CDK library 2.118

Screenshot 2024-05-06 at 3 46 41 PM

coolbitxColma commented 6 months ago

Same issue with you but in other package:



❌  bridge-api-v2-dev failed: Error: The stack named XXXXXXXX failed to deploy: UPDATE_ROLLBACK_FAILED (The following resource(s) failed to update: [XXXXXXX]. ): Received response status [FAILED] from custom resource. Message returned: Package @aws-sdk/client-ssm does not exist. (RequestId:XXXXXXXXXXX)
pahud commented 6 months ago

probably related to https://github.com/aws/aws-cdk/issues/30067

aalanzhao commented 6 months ago

Today before another round of CDK deployment, we did cdk diff on the stack, it shows no changes comparing the production environment. However, the actual deployment dies on the custom resource.

emmanuelnk commented 5 months ago

Is there any progress on this issue? This is also affecting our CFN stacks with custom resources