sparse-intern-71089
01/18/2023, 9:42 PMechoing-dinner-19531
01/18/2023, 9:58 PMdamp-fall-39416
01/19/2023, 2:07 PMfor subnet, nat_gateway in zip(
subnets["subnets_objects"], nat_gateway_objects):
private_route_table = RouteTable(
f'myRouteTableExample-{region_suffix}',
vpc_id=vpc.output.id,
routes=[{"cidr_block": "0.0.0.0/0",
"target_id": nat_gateway.id}])
Here I am trying to create several route tables dynamically, which I am iterating inside a for loop but the problem is that the resource_name would be the same and I would have to program something so that this resource_name is not repeated.
What I want to know is if Pulumi provides a solution for this or should I implement something additional.echoing-dinner-19531
01/19/2023, 4:04 PMdamp-fall-39416
01/20/2023, 3:15 PMearly-cat-34152
01/26/2023, 9:34 AMRouteTable
instances are created, and get postfixed, no?echoing-dinner-19531
01/26/2023, 9:37 AMechoing-dinner-19531
01/26/2023, 9:37 AMearly-cat-34152
01/26/2023, 9:38 AMechoing-dinner-19531
01/26/2023, 9:39 AMearly-cat-34152
01/26/2023, 9:39 AMechoing-dinner-19531
01/26/2023, 9:55 AM