Terraform

Terraform

By DeepSource

variable declaration without type TF-L0043

Anti-pattern

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 type-constraints for more details about types.

Bad example

variable "no_type" {
  default = "value"
}

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