diff --git a/internal/cmp/instance_helper.go b/internal/cmp/instance_helper.go index 25ed1170..6710464b 100644 --- a/internal/cmp/instance_helper.go +++ b/internal/cmp/instance_helper.go @@ -326,10 +326,13 @@ func instanceCompareTags(org, new map[string]interface{}) ([]models.CreateInstan } for k, v := range org { - removeTags = append(removeTags, models.CreateInstanceBodyTag{ - Name: k, - Value: v.(string), - }) + val, ok := new[k] + if !ok || (ok && val != org[k]) { + removeTags = append(removeTags, models.CreateInstanceBodyTag{ + Name: k, + Value: v.(string), + }) + } } return addTags, removeTags