smaddis / smad-deploy-azure

Terraform scripts to set up AKS, ACR, KV for Kuksa Cloud (Eclipse Hono) deployment.
MIT License
0 stars 6 forks source link

Declare static type for variables. #43

Open msrn opened 3 years ago

msrn commented 3 years ago

Currently most of the input variables are declared as implicit variables.

While type constraints are optional, we recommend specifying them; they can serve as helpful reminders for users of the module, and they allow Terraform to return a helpful error message if the wrong type is used.

Example:

variable "name" {
  type = string
  default =""
}

Type Constraints @ Terraform Docs