Difference between revisions of "Terraform variables"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
+
TOMERGE:  [[Terraform variables: variables.tf]]
 
* https://www.terraform.io/language/values/variables: <code>[[string]], number, [[bool]], any</code>
 
* https://www.terraform.io/language/values/variables: <code>[[string]], number, [[bool]], any</code>
 
* [[Terraform Cloud]]: https://www.terraform.io/cloud-docs/workspaces/variables
 
* [[Terraform Cloud]]: https://www.terraform.io/cloud-docs/workspaces/variables
Line 12: Line 12:
 
Using a file:
 
Using a file:
 
* <code>terraform apply [[-var-file]]="your_file[[.tfvars]]"</code>
 
* <code>terraform apply [[-var-file]]="your_file[[.tfvars]]"</code>
 +
 +
== Errors ==
 +
* <code>[[Error: Reference to undeclared input variable]]</code>
 +
* <code>[[Error: Variables not allowed]]</code>
 +
* <code>[[Error: Duplicate variable declaration]]</code>
 +
* <code>[[Error: No value for required variable]]</code>
  
 
== Related ==
 
== Related ==
* [[Terraform variable types]]: <code>[[string]], number, [[bool]], any</code>
+
* [[Terraform variable types]]: <code>[[string]], [[number]], [[bool]], any</code>
 
* [[Terraform environment variables]]
 
* [[Terraform environment variables]]
* [[Terraform types]]
+
* [[Terraform configuration variables]]
 
* [[Terraform: variables.tf]]
 
* [[Terraform: variables.tf]]
 
* <code>[[auto.tfvars]]</code>
 
* <code>[[auto.tfvars]]</code>
Line 23: Line 29:
 
* <code>[[Terraform: output|output]]</code>
 
* <code>[[Terraform: output|output]]</code>
 
* <code>[[-var-file]]</code>
 
* <code>[[-var-file]]</code>
* <code>[[terraform plan]]</code>
+
* <code>[[locals]]: [[locals.tf]]</code>: https://www.terraform.io/language/values/locals
* <code>[[locals]]</code>: https://www.terraform.io/language/values/locals
 
 
* [[Terragrunt: inputs:]]
 
* [[Terragrunt: inputs:]]
 +
* <code>[[TF_VAR_]]</code>
  
 
== See also ==
 
== See also ==
 
* {{Terraform variables}}
 
* {{Terraform variables}}
 +
* {{Terraform types}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 05:19, 12 February 2024

Advertising: