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

New in Pulumi IaC: `replaceWith` Resource Option

Blog post from Pulumi

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

Pulumi has introduced a new feature called the replaceWith resource option, designed to provide users with explicit control over replacement dependencies between resources in their infrastructure management processes. While Pulumi typically handles resource creation, updates, and deletions automatically, the replaceWith option addresses scenarios where finer-grained control is necessary, such as when implicit dependencies aren't readily apparent or involve application-level considerations. By declaring these dependencies explicitly in the code, users can ensure that resource replacements trigger updates to related resources, thus maintaining the consistency and functionality of interconnected services. This feature is now available in Pulumi v3.207.0 across the Go, Python, NodeJS, and Java SDKs, with plans to support C# and YAML in the future, enhancing the capability to manage complex resource interactions effectively.