From 2b68f4393ed73d528110cd3745bb396dedae71c0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Dec 2017 06:27:31 +1100 Subject: [PATCH] website: explanation of TF_VAR_ precedence Fixes #15595 --- website/docs/configuration/variables.html.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/docs/configuration/variables.html.md b/website/docs/configuration/variables.html.md index d29bdb6a9..6d130a6a6 100644 --- a/website/docs/configuration/variables.html.md +++ b/website/docs/configuration/variables.html.md @@ -339,3 +339,6 @@ has the last definition loaded. Definition files passed using the `-var-file` flag will always be evaluated after those in the working directory. + +Values passed within definition files or with `-var` will take precedence over +`TF_VAR_` environment variables, as environment variables are considered defaults.