is there a hook that one can use to be invoked just before an actual update operation (not the preview phase) begins and just after it has (successfully) finished? (Background: I'd like to send out notifications at these points in time)
re webhooks: they can do only after, did I get that right? so I need the automation API ==> looking into that now
I looked into the sample - it seems this is like calling pulumi via the cmdline. but how would I know when pulumi actually starts to update? if I send my notification "saying update in progress, service down" before calling pulumi, then the notification is sent a lot earlier than need be because first pulumi does all the preparatory work (in my case that's not insignificant because a number of docker images are built) and only then it actually hits the cloud resources.
08/31/2021, 11:54 AM
That's correct. Automation API is probably your best bet. Technically you could do it with a normal Pulumi program but you'd have to know the last thing being created and the first thing so you'd have to plan your program accordingly.