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: include plan and state providers when validating external providers #35877

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

liamcervante
Copy link
Member

This PR updates the external provider validation within Terraform Core such that it now includes the plan and/or state files when checking for "required providers". This means that when a user deletes all usages of a given provider they don't need to explicitly add that provider to the required providers block.

This improves the UX for users, since adding providers to the required providers block isn't required, making them do it only after they have removed resources is counter intuitive.

@liamcervante liamcervante merged commit c7ef162 into main Oct 22, 2024
6 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/external-providers branch October 22, 2024 09:23
Copy link
Contributor

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

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 Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants