You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can redeploy a CDK stack containing lambdas using the Datadog CDK layers without causing an error
Actual Behavior
When redeploying my stack the layer hash changes even if there is no code difference. This results in the CDK trying to create a new version, and causes a Version already exists error and a rollback.
Any subsequent deploys will now fail with this error
Resource handler returned message: "Version already exists: [[...]dd-repro:3]. Please modify the function to create a new vers
ion."
I've found that if you disable the @aws-cdk/aws-lambda:recognizeLayerVersion feature flag then the layer hash becomes consistent and further deploys are totally fine, but ideally we'd be able to leave that bug fix flag on!
The description of the flag makes it sound like one of the properties of the datadog layers is non deterministic?
Specifications
Datadog Lambda Layer version: 49
Node version: 99
CDK version: 2.109.0
DD construct version: 1.9.0 but I've seen it in 1.8.2 as well.
The text was updated successfully, but these errors were encountered:
Layers are immutable, so I'm unclear on how that would be non-deterministic
Is the only difference here the lambda version sha?
Are there any other differences in the CF template?
Can you generate the full cdk synth before and after so we could compare?
Would you be able to set enableSourceCodeIntegration: false in your datadog config block and see if the problem persists?
Expected Behavior
I can redeploy a CDK stack containing lambdas using the Datadog CDK layers without causing an error
Actual Behavior
When redeploying my stack the layer hash changes even if there is no code difference. This results in the CDK trying to create a new version, and causes a
Version already exists
error and a rollback.Steps to Reproduce the Problem
cdk diff
for your stack will show a new version being madeAny subsequent deploys will now fail with this error
I've found that if you disable the
@aws-cdk/aws-lambda:recognizeLayerVersion
feature flag then the layer hash becomes consistent and further deploys are totally fine, but ideally we'd be able to leave that bug fix flag on!The description of the flag makes it sound like one of the properties of the datadog layers is non deterministic?
Specifications
The text was updated successfully, but these errors were encountered: