Difference between revisions of "Error: Variable declaration in .tfvars file"
Jump to navigation
Jump to search
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" {} | ||
│ | │ |
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: