New in Pulumi IaC: `onError` Resource Hook
Blog post from Pulumi
Pulumi has enhanced its infrastructure as code (IaC) capabilities by introducing the onError hook, which allows users to manage failures in resource operations such as create, update, or delete. This feature is particularly useful for dealing with transient errors or situations where resources are not immediately ready, as it provides the ability to implement custom error-handling logic, such as retrying operations with backoff strategies or failing fast for specific error types. The onError hook can be programmed in various languages supported by Pulumi, including Node, Python, Go, and .NET, giving developers flexibility in handling errors according to the unique requirements of their cloud infrastructure. This development builds on last year's introduction of resource hooks, further empowering users to manage resource lifecycles more effectively and ensuring smoother and more resilient deployment processes.