incalculable-whale-36468
03/28/2022, 9:24 PMmy_template = "my secret: {my_secret}"
my_secret = config.require_secret('my_secret')
foo = my_template.format(my_secret=my_secret)
This will result in the following output:
my secret: <pulumi.output.Output object at 0x7f02baf74b80>
I tried using apply, and even Output.all, like follows:
foo = my_template.format(my_secret=my_secret.apply(lambda current_secret: current_secret))
But it will give me the same result.
What am I missing here?billowy-army-68599
my_template.format
inside the apply. something like:
my_secret.apply(lambda current_secret: my_template.format(my_secret=my_template.format(current_secret)
incalculable-whale-36468
03/29/2022, 10:11 AMfoo = Output.all(
my_secret=my_secret
).apply(
lambda output_args: my_template.format(my_secret=output_args['my_secret'])
)
billowy-army-68599
Output.all
?few-diamond-68626
06/20/2022, 2:41 PMmy_secret = config.require('my_secret')
.
=> use "require" instead of "require_secret"