Document that variable files can also be JSON, and clarify that terraform.tfvars is searched for in the *current* directory

This commit is contained in:
Alek Storm 2014-08-12 10:21:30 -07:00
parent 70b06674c8
commit 697ba0ee99

View File

@ -72,9 +72,11 @@ access_key = "foo"
secret_key = "bar" secret_key = "bar"
``` ```
If a "terraform.tfvars" file is present, Terraform automatically loads If a "terraform.tfvars" file is present in the current directory,
it to populate variables. If the file is named something else, you can Terraform automatically loads it to populate variables. If the file is
use the `-var-file` flag directly to specify a file. 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 We recommend using the "terraform.tfvars" file, and ignoring it from
version control. version control.