diff --git a/helper/resource/map.go b/helper/resource/map.go index e1600ce82..0daa3483e 100644 --- a/helper/resource/map.go +++ b/helper/resource/map.go @@ -50,6 +50,10 @@ func (m *Map) Apply( result, err = r.Update(s, d, meta) } if result != nil { + if result.Attributes == nil { + result.Attributes = make(map[string]string) + } + result.Attributes["id"] = result.ID }