Skip to content

Commit

Permalink
docs: Modify passing-providers-explicitly section hashicorp#35781
Browse files Browse the repository at this point in the history
  • Loading branch information
yogi345 committed Oct 20, 2024
1 parent 2e4a62d commit 422c3ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/language/modules/develop/providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ The keys of the `providers` map are provider configuration names as expected by
the child module, and the values are the names of corresponding configurations
in the _current_ module.

Once the `providers` argument is used in a `module` block, it overrides all of
the default inheritance behavior, so it is necessary to enumerate mappings
for _all_ of the required providers. This is to avoid confusion and surprises
that may result when mixing both implicit and explicit provider passing.
If the unaliased `provider` name is not present in the providers map,
it will still be inherited in the same way as implicit provider inheritance.
`providers` argument used in `module` block will not override the default
inheritance behavior.

Additional provider configurations (those with the `alias` argument set) are
_never_ inherited automatically by child modules, and so must always be passed
Expand Down

0 comments on commit 422c3ee

Please sign in to comment.