Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Mar 18, 2025

Conversation

liamcervante
Copy link
Member

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

None yet

2 participants