From 697ba0ee993b07674c023b4ff64867156498606f Mon Sep 17 00:00:00 2001 From: Alek Storm Date: Tue, 12 Aug 2014 10:21:30 -0700 Subject: [PATCH] Document that variable files can also be JSON, and clarify that terraform.tfvars is searched for in the *current* directory --- website/source/intro/getting-started/variables.html.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/source/intro/getting-started/variables.html.md b/website/source/intro/getting-started/variables.html.md index 56bcf7dd9c..4926b1d6e5 100644 --- a/website/source/intro/getting-started/variables.html.md +++ b/website/source/intro/getting-started/variables.html.md @@ -72,9 +72,11 @@ access_key = "foo" secret_key = "bar" ``` -If a "terraform.tfvars" file is present, Terraform automatically loads -it to populate variables. If the file is named something else, you can -use the `-var-file` flag directly to specify a file. +If a "terraform.tfvars" file is present in the current directory, +Terraform automatically loads it to populate variables. If the file is +named something else, you can use the `-var-file` flag directly to +specify a file. Like configuration files, variable files can also be +JSON. We recommend using the "terraform.tfvars" file, and ignoring it from version control.