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

terraform_unused_required_providers: handle module provider overrides #1225

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

bendrucker
Copy link
Member

When a required provider is passed down to a module, the terraform_unused_required_providers rule still reports the provider as unused. This checks all provider configurations explicitly passed into modules and counts those required providers as used.

It remains a lint error to declare a required provider when it is implicitly inherited by the child module, as that declaration is the child's responsibility.

Closes #1189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

terraform_unused_required_providers does not track providers passed to modules
1 participant