| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
The Outputs section is an optional section of a AWS CloudFormation template which enables you to return values back to the template user.
You can use the template Output section to declare information to be passed back to the template user. The
outputs are returned by the cfn-describe-stacks command.
You can use literal values or AWS CloudFormation functions to declare output information.
The information in the Outputs section is returned only by cfn-describe-stacks for an
existing stack. When the stack fails to create, or when you delete a stack, the values declared in the Output
section are not returned.
In the following example, the output named URL returns the literal value
http://aws.amazon.com/cloudformation.
"Outputs" : {
"URL" : {
"Value" : "http://aws.amazon.com/cloudformation"
}
}Most of the sample templates declare an Outputs section (see Example Templates). Also, for technical details about the format of outputs, see Outputs Declaration.