sparse-intern-71089
04/11/2020, 6:54 PMwhite-balloon-205
const str = pulumi.interpolate`Created snapshot ${<http://snapshot.id|snapshot.id>} for volume ${<http://volume.id|volume.id>}`;
str.apply(console.log);
The result of interpolate is still an output, and if you want to do something with an output you use apply. In this case, you want to log it, so you can pass console.log to the apply. That will log it when the value becomes available (nothing will get logged during an initial preview when these values are not yet known).swift-oxygen-28374
04/11/2020, 8:38 PMCreated snapshot ${id} for volume ${volumeId}
));`