This message was deleted.
# general
s
This message was deleted.
b
you'll need to resolve the output with an apply
s
Hi @billowy-army-68599 I want to use a random password resource with pulumi and send it as string to other function that should read this and put in file I tried to use with apply but unfortunately none of the tries succeed. do you able to solve any kind of this similar issue?
b
Yes this is possible, do you have code? You just want to write the file to disk? Which language?
s
Hi @billowy-army-68599 just want to write here (if anyone also will encounter this ) that this blog helped me to understand the
apply()
better and I was able to do it with
Copy code
script = user_data_password.apply(
                lambda db_user_password: script_str.format(password=db_user_password))
Eventually script is output that sent to a pulumi resource
❤️ 1