diff --git a/pkg/util/aws/snapshot.go b/pkg/util/aws/snapshot.go index 78eeeccb37..72bf7d0159 100644 --- a/pkg/util/aws/snapshot.go +++ b/pkg/util/aws/snapshot.go @@ -99,7 +99,8 @@ func (self *SRegion) GetSnapshots(instanceId string, diskId string, snapshotName // filters = AppendSingleValueFilter(filters, ) // } // owner by self - // filters = AppendSingleValueFilter(filters, "owner-id", self) + owner := "self" + params.SetOwnerIds([]*string{&owner}) if len(diskId) > 0 { filters = AppendSingleValueFilter(filters, "volume-id", diskId) }