Aws cdk does not exactly deploy what's on diff.
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 74
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
- [X] 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_
Contributor guide
Assessment
This issue has not been assessed yet.