Terraform tfvars file

When a tfvars file is in a different location, you must specify it using the “-var-file” option. However, creating a symbolic link can simplify the command operation.

  1. Create a symbolic link
ln -s ../common.tfvars terraform.tfvars
  1. Run a simple terraform command without option
terraform plan
  1. Screenshot of the process