Merge #3123: More info on -var-file option in intro.

This commit is contained in:
Martin Atkins 2015-10-10 17:26:20 -07:00
commit 1f8bdf9585
1 changed files with 11 additions and 2 deletions

View File

@ -95,8 +95,17 @@ files. And like Terraform configuration files, these files can also be JSON.
in the form of `TF_VAR_name` to find the value for a variable. For example, in the form of `TF_VAR_name` to find the value for a variable. For example,
the `TF_VAR_access_key` variable can be set to set the `access_key` variable. the `TF_VAR_access_key` variable can be set to set the `access_key` variable.
We recommend using the "terraform.tfvars" file, and ignoring it from We don't recommend saving usernames and password to version control, But you
version control. can create a local secret variables file and use `-var-file` to load it.
You can use multiple `-var-file` arguments in a single command, with some
checked in to version control and others not checked in. For example:
```
$ terraform plan \
-var-file="secret.tfvars" \
-var-file="production.tfvars"
```
<a id="mappings"></a> <a id="mappings"></a>
## Mappings ## Mappings