https://pulumi.com logo
#general
Title
# general
l

loud-river-79607

03/02/2022, 7:20 PM
i have a proble, i used pulumi with aws and create a clusterCache (redis) the script its working, but i need to get the url of redis to push to the other settings in my app in a form dinamic ¿Do you know how to resolve that problema? Add my example
b

billowy-army-68599

03/02/2022, 7:24 PM
@loud-river-79607 it would be:
Copy code
example.cacheNodes[0].address
also, you can't
console.log
an output, you need to export it:
Copy code
export const example
l

loud-river-79607

03/02/2022, 7:25 PM
ooo thanks, let me check 🙂
i executed the script again
i have the next output
I cant see the url in plain text 😞
b

billowy-army-68599

03/02/2022, 7:32 PM
can you me your code?
l

loud-river-79607

03/02/2022, 7:32 PM
of course
b

billowy-army-68599

03/02/2022, 7:33 PM
just a reminder, you CANNOT console.log an output
change the last
console.log
to this:
Copy code
export const redisUrl = example.cacheNodes[0].address
l

loud-river-79607

03/02/2022, 7:42 PM
ooo ok cool thanks
let me validate 🙂
Thank you
3 Views