This message was deleted.
# python
s
This message was deleted.
b
It looks like that field only takes a plain string, so you'd have to create the resource inside an apply
s
Hey thanks for answering, hum, sorry not sure I got this, do you mean something like saving the value in a string somewhere out of this function and referencing the string as the member value ?
b
s
not sot much, this chapter of the docs is something a bit challenging for me but looks like I will need to check it 😅 Thanks for the links will check them out.
b
Hopefully that blog post will help
s
it helps, i think. Will have to try things out but think I understood the idea. As the resources is not yet ready I cannot get the SA email and use it somewhere else so i need to use the apply() to somehow wait that the value is ready to be able to use it in other piece of code, right ?
b
Yes that's right. For most resources, you don't need to do that because you can pass an output directly to a property and it'll build a graph of dependencies. However this resource requires JSON which is built using a non input type string, so you need to resolve the output, build the JSON inside an apply once the value has resolved and then create the dependent resource
👍 1
s
Will be a bit challenging for a non dev like me 😅😄. But will try some of those things out. Thanks for the support.