Difference between revisions of "Terraform variables: variables.tf"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
  
 
Usage in <code>[[main.tf]]</code>
 
Usage in <code>[[main.tf]]</code>
 
+
storage = var.yourvarname
  
 
== Related term ==
 
== Related term ==

Revision as of 09:49, 5 September 2021

Example

Definition in variables.tf

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

Usage in main.tf

storage = var.yourvarname

Related term

See also

Advertising: