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_required_providers: use required_providers entry as range where possible #61

Closed
bendrucker opened this issue Jan 26, 2023 · 0 comments · Fixed by #63
Closed
Labels
bug Something isn't working

Comments

@bendrucker
Copy link
Member

When a required provider has a source but not a version, the rule still emits the error on the provider call:

In this case, the entry in required_providers would be a more suitable range. This would enable the following:

terraform {
  required_providers {
    # tflint-ignore: required_providers
    foo = {
      source = "host/foo"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant