Skip to content

import: fix crash when referencing the imported resource from the 'id' field#35420

Merged
liamcervante merged 1 commit intomainfrom
liamcervante/35416
Jul 3, 2024
Merged

import: fix crash when referencing the imported resource from the 'id' field#35420
liamcervante merged 1 commit intomainfrom
liamcervante/35416

Conversation

@liamcervante
Copy link
Copy Markdown
Contributor

This PR validates import id attributes to ensure they do not reference to be imported resource.

Fixes #35416

Target Release

1.9.2

Draft CHANGELOG entry

BUG FIXES

  • import blocks: Fix crash that occurs when incorrectly referencing the to resource from the id attribute.

@liamcervante liamcervante requested a review from a team July 3, 2024 10:25
@liamcervante liamcervante added the 1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Jul 3, 2024
@liamcervante liamcervante merged commit 54739db into main Jul 3, 2024
@liamcervante liamcervante deleted the liamcervante/35416 branch July 3, 2024 11:28
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 3, 2024

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 3, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terraform crash on CDKTF generated import

3 participants