website: Provider proxy config only supports alias
This commit is contained in:
parent
24386bcfcb
commit
ddd0d2a442
|
@ -328,19 +328,17 @@ provider "aws" {
|
||||||
Each resource should then have its own `provider` attribute set to either
|
Each resource should then have its own `provider` attribute set to either
|
||||||
`"aws.src"` or `"aws.dst"` to choose which of the two provider instances to use.
|
`"aws.src"` or `"aws.dst"` to choose which of the two provider instances to use.
|
||||||
|
|
||||||
At this time it is required to write an explicit proxy configuration block
|
A proxy configuration block is one that is either completely empty or that
|
||||||
even for default (un-aliased) provider configurations when they will be passed
|
contains only the `alias` argument. It serves as a placeholder for
|
||||||
via an explicit `providers` block:
|
provider configurations passed between modules. Although an empty proxy
|
||||||
|
configuration block is valid, it is not necessary: proxy configuration blocks
|
||||||
|
are needed only to establish which _alias_ provider configurations a child
|
||||||
|
module is expecting.
|
||||||
|
|
||||||
```hcl
|
A proxy configuration block must not include the `version` argument. To specify
|
||||||
provider "aws" {
|
version constraints for a particular child module without creating a local
|
||||||
}
|
module configuration, use the [`required_providers`](/docs/configuration/terraform.html#specifying-required-provider-versions)
|
||||||
```
|
setting inside a `terraform` block.
|
||||||
|
|
||||||
If such a block is not present, the child module will behave as if it has no
|
|
||||||
configurations of this type at all, which may cause input prompts to supply
|
|
||||||
any required provider configuration arguments. This limitation will be
|
|
||||||
addressed in a future version of Terraform.
|
|
||||||
|
|
||||||
## Multiple Instances of a Module
|
## Multiple Instances of a Module
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue