https://pulumi.com logo
Title
p

polite-sandwich-68547

05/05/2023, 8:10 AM
has any of you found a way to manage the ECS taskdefinition json so that we can pass variables from pulumi resource creation in it? right now I'm having the taskdefinition json inside a variable and I
fmt.Sprintf
and pass variables in it. for example Pulumi creates a loggroup and I pass the log group name inside the taskdefintion. although I find it cumbersome to maintain, is maybe a better way?
e

echoing-dinner-19531

05/05/2023, 11:09 AM
There's also
pulumi.Sprintf
that can have output values passed to it directly so no need for
ApplyT
calls. Might help with managing this.
b

bored-motherboard-21344

05/05/2023, 4:07 PM
Omg. I didn't realize that was a function... 🤦‍♂️ That would clean up my code a lot