Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, Terraform uses .tfvars files to read and assign variable values to the corresponding variables in the Terraform code. If a variable is defined in both the .tfvars file and the Terraform code, the .tfvars value will take precedence. However, if a variable is not defined in the .tfvars file, Terraform will use the default value in the code or prompt the user to enter a value during runtime if no default is set.