def get_subnet_ids()

in mwaairflow/nested_stacks/environment.py [0:0]


    def get_subnet_ids(cls, vpc, subnet_ids_list):
        if not subnet_ids_list:
            subnet_ids = []
            subnets = vpc.select_subnets(subnet_type=ec2.SubnetType.PRIVATE).subnets
            first_subnet = subnets[0]
            subnet_ids.append(first_subnet.subnet_id)
            for s in subnets:
                if s.availability_zone != first_subnet.availability_zone:
                    subnet_ids.append(s.subnet_id)
                    break
        else:
            subnet_ids = list(subnet_ids_list.split(","))

        return subnet_ids