aws / aws/aws-cdk

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

Open
#32,049 6 comments 0 reactions 1 assignee Claimed by @pahud View on GitHub
@aws-cdk/aws-route53 bug p3
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.
![Screenshot 2024-11-07 at 12 05 56](https://github.com/user-attachments/assets/7c937384-b5ee-4576-ba8b-4cdca13afeb7)
![Screenshot 2024-11-07 at 12 11 38](https://github.com/user-attachments/assets/b19246cd-14ad-4a1d-b2ad-225fa7a3885d)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.