terraform-google-lb-http icon indicating copy to clipboard operation
terraform-google-lb-http copied to clipboard

tflint: reports Warning: variable "cdn" is declared but not used (terraform_unused_declarations)

Open kazuk opened this issue 3 years ago • 0 comments

TL;DR

I run tflint with terraform_unused_declarations lint enabled

Warning: variable "cdn" is declared but not used (terraform_unused_declarations)

warning reported

Expected behavior

no warning/error.

Observed behavior

Warning: variable "cdn" is declared but not used (terraform_unused_declarations)

https://github.com/terraform-google-modules/terraform-google-lb-http/blob/master/variables.tf#L209

And No hits grep "var.cdn" on "main.tf"

Terraform Configuration

my `.tflint.hcl`


config {
  module = true
}

plugin "google" {
  enabled    = true
  version    = "0.18.0"
  source     = "github.com/terraform-linters/tflint-ruleset-google"
  deep_check = false
}

rule "terraform_unused_declarations" {
  enabled = true
}

Terraform Version

$ terraform --version
2022-07-15T04:44:49.907Z [INFO]  Terraform version: 1.2.5

Additional information

No response

kazuk avatar Jul 15 '22 04:07 kazuk