Skip to content

Aws cdk does not exactly deploy what's on diff. #32049

Open
@IhebMarnaoui

Description

@IhebMarnaoui

Describe the bug

I have noticed lately that every time I deploy a change that I am doing, a record on Route53 is disappearing even though it shouldn't. I deployed this on 3 different environments (and different projects) and I have had the same behaviour each time. the operation is basically changing the location of this TXTRecord location in my IAC from a stack to a construct that is being called within the stack itself without changing anything else in the TXTRecord code itself. It is basically an operation of cut-paste.
Screenshot 2024-11-07 at 12 05 56
Screenshot 2024-11-07 at 12 11 38

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

The diff shows that this record (shown in the screenshot) should be destroyed from the initial location and gets created in another one.

Current Behavior

What actually happens in that the resource (TXTRecord) gets deleted but never recreated again.

Reproduction Steps

Move the record code from a stack to a construct.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.150.0 (build 3f93027)

Framework Version

No response

Node.js Version

v20.9.0

OS

macOS

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p3package/toolsRelated to AWS CDK Tools or CLIpotential-regressionMarking this issue as a potential regression to be checked by team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions