terraform variables: variables.tf

From wikieduonline
Revision as of 09:58, 5 September 2021 by Welcome (talk | contribs) (→‎Example)
Jump to navigation Jump to search

Example

Definition in variables.tf

variable "yourvarname" {
  default = "your_default_value"
}
variable "yourvarname" {
  type = string
  description = "Description of your variable"
  default = "your_default_value"
}

Usage in main.tf

AnyFieldToAssingAValue = var.yourvarname

Related term

See also

Advertising: