opentofu/configs/test-fixtures/valid-files/module-calls.tf
Martin Atkins b6fdd0446e configs: parse the "providers" map for module calls
This was accidentally missed on the first pass of module call decoding.
As before, this is a map from child provider config address to parent
provider config address, allowing the set of providers to be projected in
arbitrary ways into a child module.
2018-10-16 18:44:26 -07:00

30 lines
352 B
HCL

module "foo" {
source = "./foo"
# this block intentionally left (almost) blank
}
module "bar" {
source = "hashicorp/bar/aws"
boom = "🎆"
yes = true
}
module "baz" {
source = "git::https://example.com/"
a = 1
count = 12
for_each = ["a", "b", "c"]
depends_on = [
module.bar,
]
providers = {
aws = aws.foo
}
}