Good Morning. I create resources in aws using pyth...
# python
c
Good Morning. I create resources in aws using python. Works great 🙂 Now I would like to render an inventory template for use in ansible. To that end I need the IP addresses of my servers. They are available in
server.public_ip
, however when I print that (I actually render it in a jinja2 template), its an pulumi.output.Output Object. I read in the documentation that this is because of the asynchroneous nature of the object. I tried to convert that Output object to a string using
pulumi.Output.concat()
, however that did not do the trick. I guess I would need to somehow define the dependency bevor using that, however I am a bit lost on how to do all that. Can someone explain, or has an example on how to get IP addresses from servers for further processing?