Error: Variable declaration in .tfvars file

From wikieduonline
Revision as of 13:59, 20 September 2021 by Welcome (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
│ 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: