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

brave-nightfall-19158

10/11/2021, 4:26 PM
To shed more light on above, I am using JSON.stringify to wrap my container definition in an ECS task container definition. I need to inject the ARN of a resource into an environment variable however this is where the problem arises as JSON.stringify doesn't seem to allow the interpolation of the arn... I'm assuming this is to do with how / when pulumi does this.. Anyone used ECS with container definition and injected env vars?
g

great-sunset-355

10/12/2021, 8:32 AM
search the aws or python for my name, I've solved this problem
if you cannot find it, I'll share a code snippet but I'm currently really busy
even though I did it in Python I think that solution may be applicable in TS as well
b

brave-nightfall-19158

10/12/2021, 8:41 AM
Thanks @great-sunset-355 I actually did solve it too. I noticed a couple of Github comments on similar issues so put a comment there too, basically wrapped the string in an apply function
g

great-sunset-355

10/12/2021, 8:45 AM
yeah, I use
Output.fromInput
that works with Output objects inside the json but each interpolation needs
apply