terraform variables: variables.tf

From wikieduonline
Revision as of 13:07, 20 September 2021 by Welcome (talk | contribs) (Welcome moved page Variables.tf to Terraform: variables.tf)
Jump to navigation Jump to search

Example

Definition in variables.tf

variable "YourVarName" { default = "your_default_value" }

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

Errors

Related term

See also

Advertising: