Skip to content

stacks: pre-destroy refresh should use a normal plan#36696

Merged
liamcervante merged 3 commits intomainfrom
liamcervante/stacks/refresh-with-normal-plan
Mar 18, 2025
Merged

stacks: pre-destroy refresh should use a normal plan#36696
liamcervante merged 3 commits intomainfrom
liamcervante/stacks/refresh-with-normal-plan

Conversation

@liamcervante
Copy link
Contributor

Regular Terraform actually uses a normal plan for the pre-destroy refresh: https://github.com/hashicorp/terraform/blob/main/internal/terraform/context_plan.go#L491.

This PR updates Stacks to do the same, this fixes a bug where a partially destroyed state could error because modules cannot be validated due to missing resources. This actually improves the accuracy of many outputs for destroy plans so is a positive on that front as well.

@liamcervante liamcervante requested a review from a team as a code owner March 14, 2025 13:51
@liamcervante liamcervante added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Mar 14, 2025
@liamcervante liamcervante force-pushed the liamcervante/stacks/refresh-with-normal-plan branch from 93c2c68 to 9df9077 Compare March 14, 2025 14:21
dsa0x
dsa0x previously approved these changes Mar 14, 2025
@liamcervante liamcervante merged commit 9bbe34d into main Mar 18, 2025
8 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/refresh-with-normal-plan branch March 18, 2025 08:28
@github-actions
Copy link
Contributor

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 Apr 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments