Terraform

Terraform

Made by DeepSource

variable declaration without type TF-L0043

Anti-pattern
Minor

Since type is optional value, it is not always necessary to declare it. This issue is useful if you want to force declaration of a type. See https://www.terraform.io/docs/configuration/variables.html#type-constraints for more details about types.

Example:

variable "no_type" {
  default = "value"
}

variable "enabled" {
  default     = false
  description = "This is description"
  type        = bool
}