fancy-spoon-7206
06/17/2022, 4:01 PMpulumi.StringOutput
to string
? Its becoming weirdly difficult for me to get the tags right with all the custom types that don't seem to have a straight forward way to convert to string.
The below does not work as natgw
is a string and publicSubnets[0].AvailabilityZone
is a StringOutput
natGatewayName := "natgw" + publicSubnets[0].AvailabilityZone
billowy-army-68599
natGatewayName := pulumi.Sprintf("natgw+ %s", publicSubnets[0].AvailabilityZone)
fancy-spoon-7206
06/17/2022, 4:25 PMec2.NewNatGateway(ctx, natGatewayName, ... )
wont workbillowy-army-68599
ApplyT
but then your previews wouldn't be validfancy-spoon-7206
06/17/2022, 4:43 PM