sparse-intern-71089
10/04/2019, 4:47 PMclean-engineer-75963
10/04/2019, 4:47 PMstr()
and that didn't work.clean-engineer-75963
10/04/2019, 4:48 PMnumerous-easter-93888
10/04/2019, 4:55 PMnumerous-easter-93888
10/04/2019, 4:57 PM.apply()
function on the pulumi.Output
object. For example:
bastion_ip = bastion.private_ip.apply(lambda foo: '%s/32' % foo)
clean-engineer-75963
10/04/2019, 5:01 PMclean-engineer-75963
10/04/2019, 5:02 PMapply
is another Output
, which is why I hadn't tried it yet: https://www.pulumi.com/docs/intro/concepts/programming-model/#outputsclean-engineer-75963
10/04/2019, 5:02 PMThe result of the call to apply is a new Output whose value is the value returned from the callback, and which includes the dependencies of the original Output.
numerous-easter-93888
10/04/2019, 5:07 PMnumerous-easter-93888
10/04/2019, 5:08 PM