Description
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.
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