mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-17 10:01:05 -05:00
Validate providers in expanding modules. Expanding modules cannot have provider configurations with non-empty configs, which includes having a version configured. If an empty or alias-only block is passed, the provider must be passed through the providers argument on the module call
20 lines
288 B
HCL
20 lines
288 B
HCL
provider "aws" {
|
|
region = "us-east-1"
|
|
alias = "east"
|
|
}
|
|
|
|
module "child" {
|
|
count = 1
|
|
source = "./child"
|
|
providers = {
|
|
aws = aws.east
|
|
}
|
|
}
|
|
|
|
module "child_with_alias" {
|
|
for_each = toset(["a", "b"])
|
|
source = "./child-with-alias"
|
|
providers = {
|
|
aws.east = aws.east
|
|
}
|
|
} |