lol, the situation I had was: rtb = ec2.RouteTable...
# python
p
lol, the situation I had was: rtb = ec2.RouteTable(“rtb-public”…) subnet = ec2.Subnet(“subnet-a-something…) rtb_assoc = ec2.RouteTableAssociation(“rtb-assoc-public-a-something”…)
i
Yeah - when we do things like this, we usually end up breaking the name into a local variable:
Copy code
name = "rtb-public"
rtb = ec2.RouteTable(name, ...)
...
rtb_assoc = ec2.RouteTableAssociation(name + "assoc", ...)