Difference between revisions of "Error: Variable declaration in .tfvars file"
Jump to navigation
Jump to search
(Created page with " │ Error: Variable declaration in .tfvars file │ │ on terraform.tfvars line 74: │ 74: variable "YOUR_VAR_NAME" {} │ │ A .tfvars file is used to assign val...") |
|||
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: |
Revision as of 14:00, 20 September 2021
│ 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
Advertising: