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
run but better to be triggered at the point of failure than potentially in the future dependent on parallel tasks.
01/27/2022, 5:54 PM
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.