Company
Date Published
Author
Abhinav Gupta
Word count
562
Language
English
Hacker News points
None

Summary

Pulumi has introduced a new method called StackReference.getOutputDetails, which allows users to directly access output values from other stacks without needing to call Output.apply repeatedly. Stack references are a feature in Pulumi that enable one stack to access output values from another, such as an application stack retrieving a VPC ID from a network stack. Previously, using the getOutput method returned an Output value that required the use of apply for transformations, but the new getOutputDetails method returns a plain value, simplifying the process. This method also extends to secret outputs, allowing access to sensitive information like database passwords. However, it is limited to stack references where the referenced stack has already been deployed, and cannot be used for all Output values, which only become available during the pulumi update process. This feature is available in all stable Pulumi SDKs starting from version 3.55.0.