The same variable is defined in the following places:
- The file
terraform.tfvars - Environment variable
- Using
-varor-var-file
According to variable precedence, which source will be used first?
Answer
Terraform loads variables in the following order, with later sources taking precedence over earlier ones:
- Environment variable
- The file
terraform.tfvars - Using
-varor-var-file