https://pulumi.com logo
Title
s

shy-exabyte-78907

06/29/2021, 8:17 PM
Hello everyone. Is there a way to run a block of code just if X and Y resource was updated in a
pulumi up
?
b

bored-oyster-3147

06/29/2021, 8:28 PM
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
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!