def get_key_pairs(self): from c7n.resources.vpc import KeyPair manager = KeyPair(self.manager.ctx, {}) return set([k['KeyName'] for k in manager.resources()])