Is there a way (ts) to register events for resourc...
# general
m
Is there a way (ts) to register events for resources when they are created/updated within the runtime? Ie. to publish on a sns topic when a certain resource is updated or created. Concrete example: publish sns topic when a Migration resource fails.
Doing this within the runtime is preferred - I could ofc inspect the output of an
up
run but better to be triggered at the point of failure than potentially in the future dependent on parallel tasks.
e
There's an issue for this: https://github.com/pulumi/pulumi/issues/127 There is some support for running commands with the Command package. We're continuing to think how best to support other events, do vote and comment on that issue with your use case so we can be sure we build the right thing.
1