alert-glass-49407
10/06/2021, 8:22 PMred-match-15116
10/06/2021, 8:26 PMalert-glass-49407
10/06/2021, 8:56 PMtest = '''{{ some_value }}'''
jinja2.Template(test).render(
some_value = pulumi_output.apply(lambda x: f"{x}"
))
and similar incantations, which was not working
adjusting to treat the apply as the entrypoint e.g.
test = '''{{ some_value }}'''
pulumi_output.apply(
lambda x: jinja2.Template(test).render(some_value=x))
works just fine 🙂billowy-army-68599
apply
as the entrypoint? you have to do it that way, because apply
basically means "wait for this value to resolve, then do something"alert-glass-49407
10/06/2021, 9:23 PMsome_value=pulumi_output
into the render call and my resulting string has the __repr__
value in it
2. Ok, I'll swap that to pulumi_output.apply()
, .concat()
, etc., trying to find one that works
3. Try to search examples repository, don't find anything great immediately, post in slack 🙂billowy-army-68599
alert-glass-49407
10/06/2021, 9:53 PMgreat-sunset-355
10/07/2021, 7:14 AM