This message was deleted.
# python
s
This message was deleted.
b
@ambitious-article-39970 you can't pass an output (ie the result of provisioning another resource) into a container definition because container definitions only take strings I would first read this: https://www.leebriggs.co.uk/blog/2021/05/09/pulumi-apply.html Then update your code to look like this: https://github.com/pulumi/examples/blob/258d3bad0a00020704743e37911c51be63c06bb4/aws-py-voting-app/__main__.py#L162
a
thanks I still seem to have issues when using apply to pull the string out of the output though
g
another soul bitten by Outputs. I'm doing fargate as well - you can find a lot of my discussions above. The solution to construct more complex JSON objects is use
Output.all
for each level of the structure that contains outputs + you cannot use
json.dumps(json.dumps())
the inner JSON will produce escaped json string which is what you do not want
I will try to produce a good example in few days, when I'm back
@ambitious-article-39970 look at my post above I found a very simple solution