Company
Date Published
Author
Will Jones
Word count
1327
Language
English
Hacker News points
None

Summary

Pulumi has introduced a new feature, the --run-program flag, to enhance its infrastructure management capabilities by allowing the pulumi refresh and pulumi destroy commands to execute user programs before performing their respective operations. This update is particularly beneficial for teams dealing with complex infrastructures that require dynamically configured resources or short-lived credentials, as it ensures the necessary context is established before operations are executed. Previously, refresh and destroy commands did not account for changes in code, which could disrupt workflows relying on dynamic credential fetching or resource determination. By opting into this feature, teams can address such issues, and the company plans to make this behavior the default in future releases. This improvement also opens the door for additional features like lifecycle hooks, which would enable running arbitrary code at different points in a resource's lifecycle. Pulumi encourages users to provide feedback through their RFC and community channels.