clean-engineer-75963
10/04/2019, 4:47 PMbase64.b64encode
and it's not working since it's a pulumi.Output
and not a bytes-like object.str()
and that didn't work.numerous-easter-93888
10/04/2019, 4:55 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 PMapply
is another Output
, which is why I hadn't tried it yet: https://www.pulumi.com/docs/intro/concepts/programming-model/#outputsThe 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 PM