diff --git a/terraform/transform_destroy_edge.go b/terraform/transform_destroy_edge.go index df3872a1d3..bc3c9619d3 100644 --- a/terraform/transform_destroy_edge.go +++ b/terraform/transform_destroy_edge.go @@ -81,7 +81,7 @@ func (t *DestroyEdgeTransformer) Transform(g *Graph) error { destroyers[key] = append(destroyers[key], n) destroyerAddrs[key] = addr - resAddr := addr.Resource.Absolute(addr.Module).String() + resAddr := addr.Resource.Resource.Absolute(addr.Module).String() destroyersByResource[resAddr] = append(destroyersByResource[resAddr], n) case GraphNodeCreator: addr := n.CreateAddr()