Introducing the Stash Resource in Pulumi IaC
Blog post from Pulumi
Pulumi introduces the Stash resource, a built-in feature designed to store and preserve arbitrary values in a stack's state, making it easier to maintain consistency across deployments. This is particularly useful for scenarios such as capturing a random identifier, recording the initial deployer's identity, or saving timestamps from first deployments, without resorting to external storage or complex state manipulations. Stash takes an input value and retains it as an output property, ensuring the original value remains unchanged even if inputs are modified in future deployments. It supports multiple value types, respects secret annotations for encryption, and facilitates replacement when updates are necessary through options like the --target-replace flag, pulumi state taint command, or the replacementTrigger resource option. Available in Pulumi v3.208.0 and later, Stash supports various programming languages, and the Pulumi team invites feedback and use cases from users in their community.