This message was deleted.
# typescript
s
This message was deleted.
g
You can use
pulumi.interpolate
directly in that case.
Copy code
const userData = pulumi.interpolate`
IP Address: ${instance.publicIp}
Subnet ID: ${vpc.publicSubnetIds[0]}
`;
Without needing .all and .apply
a
👏 👏 👏 👏
Okay, so here was the wrinkle.
It looks like this doesn't work, but I just stopped doing it with two strings.
Copy code
const str = pulumi.interpolate'config ${inst.privateIp}';

const otherStr = '${str}'
So I stopped using two strings, which is ugly, but since it works, whatever. I'll move on.
s
For two strings you can use .all and then .apply