9 default = "registry.k8s.io/ingress-nginx/controller:v1.3.0@sha256:d1707ca76d3b044ab8a28277a2466a02100ee9f58a86af1535a3edf9323ea1b5"
10}
11
12variable "nginx_user" {13 type = string
14 default = "101"
15}
21 type = string
22}
23
24variable "release" {25 type = string
26}
27
27 type = string
28}
29
30variable "syslog" {31 default = ""
32}
33
Terraform will ignore variables and locals that are not used. It will refresh declared data sources regardless of usage. However, unreferenced variables likely indicate either a bug (and should be referenced) or removed code (and should be removed).
variable "not_used" {}
variable "used" {}
output "out" {
value = var.used
}
It is recommended to remove the declaration.
For variable and data, remove the entire block. For a local value, remove the attribute from the locals block.
While data sources should generally not have side effects, take greater care when removing them. For example, removing data `"http"` will cause Terraform to no longer perform an HTTP `GET` request during each plan.
If a data source is being used for side effects, add an annotation to ignore it:
```hcl
# skipcq: TF-L0039
data "http" "example" {
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"
}