diff --git a/pkg/sdk/models/resource.go b/pkg/sdk/models/resource.go index 1a8d090a..a2435773 100644 --- a/pkg/sdk/models/resource.go +++ b/pkg/sdk/models/resource.go @@ -18,5 +18,11 @@ type Resource struct { } func (r Resource) UniqueID() string { - return r.ID + if r.ID != "" { + return r.ID + } + if r.ARN != "" { + return r.ARN + } + return r.Name }