Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

rule to set a list of allowed or denied providers #146

Closed
nitrocode opened this issue Nov 5, 2023 · 0 comments
Closed

rule to set a list of allowed or denied providers #146

nitrocode opened this issue Nov 5, 2023 · 0 comments

Comments

@nitrocode
Copy link

Is this something that should be covered by tflint or a separate package?

Workaround https://github.com/suzuki-shunsuke/tfprovidercheck

Example for terraform_approved_providers

rule "terraform_approved_providers" {
  enabled = true

  providers = [
    {
      source  = "registry.terraform.io/hashicorp/google"
      version = ">= 4.0.0"
    },
  ]
}

Example for terraform_denied_providers

rule "terraform_denied_providers" {
  enabled = true

  providers = [
    {
      source  = "registry.terraform.io/hashicorp/null"
      version = "> 0"
    },
  ]
}

Thanks for considering!

@terraform-linters terraform-linters locked and limited conversation to collaborators Nov 6, 2023
@bendrucker bendrucker converted this issue into discussion #148 Nov 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

1 participant