This message was deleted.
# general
s
This message was deleted.
w
Copy code
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).
🙇‍♂️ 1
s
This worked. Thank you! `snapshot.id.apply(id => console.log(
Created snapshot ${id} for volume ${volumeId}
));`