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

🔧 Disable checking for unused providers #58

Closed
wants to merge 1 commit into from
Closed

Conversation

nomaster
Copy link
Member

No description provided.

@wiebeck
Copy link
Contributor

wiebeck commented Sep 27, 2023

@nomaster Where exactly did the tflint check fail because of checks for unused providers?

@nomaster
Copy link
Member Author

@nomaster Where exactly did the tflint check fail because of checks for unused providers?

When adding a provider to the root module's configuration, tflint will give the following warning:

Warning: provider 'null' is declared in required_providers but not used by the module (terraform_unused_required_providers)

  on main.tf line 27:
  27:     null = {
  28:       source  = "hashicorp/null"
  29:       version = "3.2.1"
  30:     }

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.4.0/docs/rules/terraform_unused_required_providers.md

Maybe this does not appear in the case of any resources existing in the state?

@wiebeck
Copy link
Contributor

wiebeck commented Oct 4, 2023

Maybe this does not appear in the case of any resources existing in the state?

Yea, maybe. Well, I'm fine with disabling the check.

@wiebeck wiebeck closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants