def get_security_groups(self): from c7n.resources.vpc import SecurityGroup manager = SecurityGroup(self.manager.ctx, {}) return set([s['GroupId'] for s in manager.resources()])