Updated note about variable files

This commit is contained in:
Shani Elharrar 2015-08-30 09:59:21 +03:00 committed by Martin Atkins
parent 3f7c3a92c3
commit 9a6f680eda
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,
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
version control.
We don't recommend saving usernames and password to version control, But you
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>
## Mappings