AFAIK there is not a way to do this with a local pulumi program just using the CLI
But in Automation API you can provide a delegate so that you can subscribe to pulumi engine events
And then you could look for a ResourcePreEvent that is touching your trigger resource with whatever your trigger criteria is
bored-oyster-3147
06/29/2021, 8:29 PM
Actually you probably want ResourceOutputsEvent so that it is after it was updated
s
shy-exabyte-78907
06/29/2021, 8:30 PM
Right! I will look into it! Thank you so much @bored-oyster-3147!