for idx, name in enumerate(subnet_names):
aws.ec2.Subnet(
resource_name=name,
vpc_id=resource_vpc.id,
cidr_block=str(ipv4_subnets[idx]),
availability_zone_id=az.zone_ids[idx],
ipv6_cidr_block=str(ipv6_subnets[idx]),
tags={
"Name": name,
})
rhythmic-lamp-79430
12/30/2021, 5:36 AM
looks like i am hitting a race condition in this case when I am deploying the whole stack from scratch…
The get_vpc is failing to get the attributes of the vpc that is being created as part of the stack…
when i run the code it in stages i.e. create the vpc first then the get_vpc and then subnets…it works fine
however, the whole stack as one go isnt working…
I have tried to use
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.