From c5d8f2ffd2fe69c4d77c7500abed42c7b3e111a8 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 28 Sep 2017 09:54:23 -0700 Subject: [PATCH] website: clarify that provider version does not accept interpolations This fixes #15896. --- website/docs/configuration/providers.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/configuration/providers.html.md b/website/docs/configuration/providers.html.md index 4f8629f81..88c3575ec 100644 --- a/website/docs/configuration/providers.html.md +++ b/website/docs/configuration/providers.html.md @@ -185,4 +185,6 @@ provider "aws" { } ``` +An exception to this is the special `version` attribute that applies to all `provider` blocks for specifying [provider versions](#provider-versions); interpolation is not supported for provider versions since provider compatibility is a property of the configuration rather than something dynamic, and provider plugin installation happens too early for variables to be resolvable in this context. + -> **NOTE:** Because providers are one of the first things loaded when Terraform parses the graph, it is not possible to use the output from modules or resources as inputs to the provider. At this time, only [variables](/docs/configuration/variables.html) and [data sources](/docs/configuration/data-sources.html), including [remote state](/docs/providers/terraform/d/remote_state.html) may be used in an interpolation inside a provider stanza.