Merge pull request #25994 from hashicorp/alisdair/provider-requirements-doc-note

website: Provider requirements are not inherited
This commit is contained in:
Alisdair McDiarmid 2020-08-25 14:33:17 -04:00 committed by GitHub
commit 1b9b85115b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,6 +372,8 @@ resource "aws_s3_bucket" "example" {
We recommend using this approach when a single configuration for each provider We recommend using this approach when a single configuration for each provider
is sufficient for an entire configuration. 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 In more complex situations there may be
[multiple provider configurations](/docs/configuration/providers.html#alias-multiple-provider-configurations), [multiple provider configurations](/docs/configuration/providers.html#alias-multiple-provider-configurations),
or a child module may need to use different provider settings than or a child module may need to use different provider settings than