Difference between revisions of "Error: Variable declaration in .tfvars file"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
│ Error: [[Variable]] declaration in .tfvars file | │ Error: [[Variable]] declaration in .tfvars file | ||
│ | │ | ||
− | │ on terraform.tfvars line 74: | + | │ on [[terraform.tfvars]] line 74: |
│ 74: variable "YOUR_VAR_NAME" {} | │ 74: variable "YOUR_VAR_NAME" {} | ||
│ | │ | ||
Line 14: | Line 14: | ||
== See also == | == See also == | ||
* {{terraform plan}} | * {{terraform plan}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 12:49, 20 January 2022
│ Error: Variable declaration in .tfvars file │ │ on terraform.tfvars line 74: │ 74: variable "YOUR_VAR_NAME" {} │ │ A .tfvars file is used to assign values to variables that have already been declared in .tf files, not to declare new variables. To declare │ variable "YOUR_VAR_NAME", place this block in one of your .tf files, such as variables.tf. │ │ To set a value for this variable in terraform.tfvars, use the definition syntax instead: │ YOUR_VAR_NAME = <value> ╵
See also[edit]
Advertising: