opentofu/terraform/test-fixtures/apply-resource-depends-on-module-deep/main.tf
Mitchell Hashimoto 538302f143
terraform: resources nested within a module must also be depended on
For example: A => B => C (modules). If A depends on module B, then it
also must depend on everything in module C.
2016-11-12 15:38:28 -08:00

8 lines
109 B
HCL

module "child" {
source = "./child"
}
resource "aws_instance" "a" {
depends_on = ["module.child"]
}