Merge pull request #189 from alekstorm/docs-variable-files

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:
Jack Pearkes 2014-08-19 09:51:20 -07:00
commit 47ddd197f5
1 changed files with 5 additions and 3 deletions

View File

@ -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.