Closed jseiser closed 6 years ago
Hey @jseiser I think we can avoid defining ec2.Route
multiple times.
Lets try to do something like this:
route= ec2.Route(
route_name,
RouteTableId=Ref(route_table_name),
DestinationCidrBlock='0.0.0.0/0',
)
if variables["UseNatGateway"]:
route.NatGatewayId = Ref(NAT_GATEWAY_NAME % name_suffix)
else:
route.InstanceId = Ref(NAT_INSTANCE_NAME % name_suffix)
t.add_resource(route)
Working arround https://github.com/remind101/stacker_blueprints/issues/142