How to cast a const to a string in Pulumi?TypeScript
String()global function, or call
.toString()method on the variable.
Here's a program block demonstrating how to cast a numerical value to a string in Pulumi.
You will see in the pulumi logs that both methods produce the same result - a string representation of the number 42.