From 5f43934d5f6d72920f86c0fc5eda9287d71cb9ff Mon Sep 17 00:00:00 2001 From: Alisdair McDiarmid Date: Tue, 25 Aug 2020 13:02:16 -0400 Subject: [PATCH] website: Provider requirements are not inherited Add a note to the provider configuration section explaining that only config can be inherited by child modules, not source or version requirements. --- website/docs/configuration/modules.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/configuration/modules.html.md b/website/docs/configuration/modules.html.md index a1c1060ad..c2404600f 100644 --- a/website/docs/configuration/modules.html.md +++ b/website/docs/configuration/modules.html.md @@ -372,6 +372,8 @@ resource "aws_s3_bucket" "example" { We recommend using this approach when a single configuration for each provider is sufficient for an entire configuration. +~> **Note:** Only provider configurations are inherited by child modules, not provider source or version requirements. Each module must [declare its own provider requirements](provider-requirements.html). This is especially important for non-HashiCorp providers. + In more complex situations there may be [multiple provider configurations](/docs/configuration/providers.html#alias-multiple-provider-configurations), or a child module may need to use different provider settings than