https://pulumi.com logo
#python
Title
# python
b

bland-lamp-97030

02/09/2019, 11:22 PM
Copy code
subnet = ec2.Subnet(
        subnet_name,
        vpc_id=vpc.id,
        availability_zone=pulumi_aws.get_availability_zones().names[num],
        cidr_block=subnet_ranges[num],
        map_public_ip_on_launch=True,
        tags={"Name": subnet_name, **default_tags},
    )