diff --git a/terraform/transform_reference.go b/terraform/transform_reference.go index 94659e380..6a0ee98fa 100644 --- a/terraform/transform_reference.go +++ b/terraform/transform_reference.go @@ -303,6 +303,8 @@ func (m ReferenceMap) References(v dag.Vertex) []dag.Vertex { subject = ri.ContainingResource() case addrs.AbsModuleCallOutput: subject = ri.ModuleCallOutput() + case addrs.ModuleCallInstance: + subject = ri.Call default: log.Printf("[WARN] ReferenceTransformer: reference not found: %q", subject) continue