sparse-intern-71089
01/31/2023, 11:07 PMbillowy-army-68599
rta_name = f"rta-{pub_subnet.id}-public"
You can’t concat a string with an Output[str]
billowy-army-68599
broad-holiday-50009
01/31/2023, 11:15 PMbroad-holiday-50009
01/31/2023, 11:23 PMpub_rtas = []
for pub_subnet in pub_subnets:
rta_name = pub_subnet.id
newCall = pub_rtas.append(f"{rta_name}-public")
ec2.RouteTableAssociation(
resource_name = newCall,
subnet_id = pub_subnet.id,
gateway_id = igw.id,
route_table_id="HNO-route-table-public",
)
billowy-army-68599
rta_name = pub_subnet.id
newCall = pub_rtas.append(f"{rta_name}-public")
this just assigned the value pub_subnet.id
to a string, so it’s still an Output[str]
so you still can’t concatenate
resource_name = newCall,
i din’t think that’s a valid parameterbillowy-army-68599
broad-holiday-50009
01/31/2023, 11:55 PM