stale-iron-26898
06/20/2022, 4:18 PMuser_password = RandomPassword().result
the variable ‘user_password’ I sent to my dynamic resource which only create a query with the ‘user_password’ inside (Eventually is a string ) the problem is that the value is the Object itself <pulumi.output.Output at 0x7ffe81ffe6d0>
is there a way to export the value i get from randomPassword into a string in run time? 😢
Thanks!billowy-army-68599
stale-iron-26898
06/21/2022, 10:51 AMbillowy-army-68599
stale-iron-26898
06/27/2022, 11:23 AMapply()
better and I was able to do it with
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