From 1df2cf7d6bd1e393f082a0464b7330080e81d43c Mon Sep 17 00:00:00 2001 From: MooYeol Prescott Lee Date: Thu, 29 Dec 2016 07:40:55 +0900 Subject: [PATCH] website: Correct unrelated contents on env vars in variables page (#10950) --- .../source/intro/getting-started/variables.html.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/website/source/intro/getting-started/variables.html.md b/website/source/intro/getting-started/variables.html.md index 7e32a72dc6..29af269f0c 100644 --- a/website/source/intro/getting-started/variables.html.md +++ b/website/source/intro/getting-started/variables.html.md @@ -93,12 +93,6 @@ specify a file. These files are the same syntax as Terraform configuration files. And like Terraform configuration files, these files can also be JSON. -#### From environment variables - -Terraform will read environment variables 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 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. @@ -110,6 +104,13 @@ $ terraform plan \ -var-file="secret.tfvars" \ -var-file="production.tfvars" ``` + +#### From environment variables + +Terraform will read environment variables 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. + -> **Note**: Environment variables can only populate string-type variables. List and map type variables must be populated via one of the other mechanisms.