terraform-google-modules / terraform-google-lb-http

Creates a global HTTP load balancer for Compute Engine by using forwarding rules
https://registry.terraform.io/modules/terraform-google-modules/lb-http/google
Apache License 2.0
312 stars 355 forks source link

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

Closed kazuk closed 2 years ago

kazuk commented 2 years ago

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

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days