
Answer-first summary for fast verification
Answer: Use 'Export' field in the Output section of the stack's template
Use 'Export' field in the Output section of the stack's template To share information between stacks, export a stack's output values. Other stacks that are in the same AWS account and region can import the exported values. To export a stack's output value, use the Export field in the Output section of the stack's template. To import those values, use the Fn::ImportValue function in the template for the other stacks. Incorrect options: Use 'Expose' field in the Output section of the stack's template - 'Expose' is a made-up option, and only given as a distractor. Use Fn::ImportValue - To import the values exported by another stack, we use the Fn::ImportValue function in the template for the other stacks. This function is not useful for the current scenario. Use Fn::Transform - The intrinsic function Fn::Transform specifies a macro to perform custom processing on part of a stack template. Macros enable you to perform custom processing on templates, from simple actions like find-and-replace operations to extensive transformations of entire templates. This function is not useful for the current scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
An IT company utilizes AWS CloudFormation for managing its IT infrastructure and has designed a template to provision a stack that includes a Virtual Private Cloud (VPC) and a subnet. There is a requirement to use the output value of this subnet in a different stack.
As a Developer Associate, which of the following methods would you recommend to share this information with another stack?
A
Use 'Export' field in the Output section of the stack's template
B
Use Fn::Transform
C
Use Fn::ImportValue
D
Use 'Expose' field in the Output section of the stack's template
No comments yet.