Home / Companies / Pulumi / Blog / Post Details
Content Deep Dive

New in Pulumi IaC: Support for skipping a resource

Blog post from Pulumi

Post Details
Company
Date Published
Author
Tom Harding
Word Count
1,201
Language
English
Hacker News Points
-
Summary

Managing large-scale infrastructure is streamlined with Pulumi's new features, which introduce the --exclude and --exclude-dependents flags for stack operations. These additions allow users to omit specific resources and their dependents from deployment tasks, such as pulumi up and pulumi destroy, offering a more refined control over which resources are affected during operations. Previously, the --target flag enabled targeting specific resources, but it became cumbersome when needing to exclude a few items from operations affecting large stacks. The new flags resolve this by allowing users to exclude resources like databases needing maintenance or draft articles from a website deployment, without resorting to workarounds or custom scripts. This enhancement is particularly useful for scenarios where infrastructure managers want to operate on most resources but leave out certain ones, providing a scalable approach to manage resources across different environments effectively. These features are part of Pulumi CLI v3.158.0, with future integration into automation APIs and GitHub actions.