AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Outputs

You can use the template Outputs section to declare information to be passed back to the template user. The outputs are returned by the aws cloudformation 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 aws cloudformation describe-stacks for an existing stack. When the stack fails to create, or when you delete a stack, the values declared in the Outputs 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.