def get_snapshots(self): from c7n.resources.ebs import Snapshot manager = Snapshot(self.manager.ctx, {}) return set([s['SnapshotId'] for s in manager.resources()])