big-notebook-65054
07/22/2022, 6:57 PMpassword.result
but that doesn't seem to ever change from a pulumi.Output<string>
type.
const password = new random.RandomPassword(`random-password-${stack}`, { length: 16 });
To get into the specifics more, I am trying to place this password output into a config file on an EC2 instance by inserting it into the userData script. Every time I check the new EC2 server I get this error in the logs:
To get the value of an Output<T> as an Output<string> consider either:
1: o.apply(v => `prefix${v}suffix`)
2: pulumi.interpolate `prefix${v}suffix`
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi./"
In the docs it says Because outputs are asynchronous, their actual raw values are not immediately available.
which makes sense, but I cannot use apply()
or any of the other options to get a readable string value on the password.result
output.
What am I missing here? Is there some sort of async/await functionality I can use to wait for it to resolve? Thanks!billowy-army-68599
07/22/2022, 7:07 PMapply
block. If you tell me which language you’re using and share some of your code I can create an examplebig-notebook-65054
07/22/2022, 8:56 PM