https://pulumi.com logo
#python
Title
# python
b

bland-pharmacist-96854

01/20/2023, 3:50 PM
How can i concatenate strings when using
pulumi.output.json_dumps
?
b

billowy-army-68599

01/20/2023, 3:52 PM
use
pulumi.Output.format
or
pulumi.Output.concat
pulumi.Output.concat(logs_bucket.arn, "/*")
b

bland-pharmacist-96854

01/20/2023, 3:54 PM
what is the difference?
b

billowy-army-68599

01/20/2023, 3:54 PM
same difference as the
format
and f string implementation in python 🙂
b

bland-pharmacist-96854

01/20/2023, 4:22 PM
:)
thanks!
can you provide an example with
format
please?
b

billowy-army-68599

01/20/2023, 4:24 PM
Copy code
pulumi.Output.format("{0}-{1}", name, args.container_name)
2 Views