if I want to call an API after the regular pulumi ...
# typescript
if I want to call an API after the regular pulumi deployments have happened, using some of the output properties of some resources, how would I go about this? More concretely: a) where do I put the code that is supposed to run after the resources have been created/updated? b) how can I use outputs in that code? c) can I somehow store custom state in Pulumi? or more generally: somehow use it's update/dependency mechanism so my API calls only execute when needed? background: I want to call the Graph API after an Azure B2C tenant has been created in order to create app registrations and upload custom policies?
are you using some automation to
pulumi? Can you use the system to kick off your api script? For instance I am using github actions workflow, an additional step after
pulumi up
could be used to launch the api script. You can do something like this to get the output of
values from pulumi
pulumi stack output bastionHost -s xxxxx/xxxx
ah, that sounds interesting
yes, I can kick off something else.
thanks for the tip, I'm trying this now 🙂
works like a charm - thank you very much!