O'Reilly logo
  • Sela de la Pena Palomo thinks this is interesting:

To allow you to make your code more DRY and more configurable, Terraform allows you to define input variables. The syntax for declaring a variable is:

variable "NAME" {
  [CONFIG ...]

The body of the variable declaration can contain three parameters, all of them optional:


It’s always a good idea to use this parameter to document how a variable is used. Your teammates wi...


Cover of Terraform: Up and Running


Input variables