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

proud-artist-4864

02/22/2019, 6:36 AM
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

incalculable-sundown-82514

02/22/2019, 6:48 PM
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", ...)