Hello, I want to ask about `Script` construct, is ...
# help
b
Hello, I want to ask about
Script
construct, is there a way to wait it until finish execute, and output its result with stack outputs?
f
Hey @Bshr Ramadan, currently CloudFormation does wait for the
Script
to finish executing. Can you elaborate on your use case?
b
Yeah, but what I wanted is to have script's output inside the outputs of deploying process
f
Gotcha! That makes sense.
Btw, can you give me an example of what is ur Script returning that you want to set as the output? Is the Script creating some resources?
b
it's creating some records in a mongo db, I just wanted to print number of records was created
f
Gotcha. Are you seeding the MongoDB inside
createFunction
or
updateFunction
?
b
Currently it's in createFunction
f
I see. AFAIK for custom resources, the construct also need to return an output on UPDATE. Do you know how you might do that?
Also, correct me if i’m wrong on how custom resources work 😁