diff --git a/terraform/schemas.go b/terraform/schemas.go index 8b8f3f338..6f175948b 100644 --- a/terraform/schemas.go +++ b/terraform/schemas.go @@ -260,6 +260,12 @@ func loadProvisionerSchemas(schemas map[string]*configschema.Block, config *conf ensure(pc.Type) } } + + // Must also visit our child modules, recursively. + for _, cc := range config.Children { + childDiags := loadProvisionerSchemas(schemas, cc, components) + diags = diags.Append(childDiags) + } } return diags