opentofu/terraform/test-fixtures/plan-module-provider-var/main.tf
Mitchell Hashimoto 89f7e3b79f
terraform: add module vars after providers to see references
Fixes #10711

The `ModuleVariablesTransformer` only adds module variables in use. This
was missing module variables used by providers since we ran the provider
too late. This moves the transformer and adds a test for this.
2016-12-13 21:22:21 -08:00

7 lines
104 B
HCL

variable "foo" { default = "bar" }
module "child" {
source = "./child"
foo = "${var.foo}"
}