Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Returning the outputs from a CloudFormation template with Boto?

I'm trying to retrieve the list of outputs from a CloudFormation template using Boto. I see in the docs there's an object named boto.cloudformation.stack.Output. But I think this is unimplemented functionality. Is this currently possible?

like image 944
jamieb Avatar asked Jan 04 '13 18:01

jamieb


People also ask

How do I export a value from CloudFormation template?

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. For a walkthrough and sample templates, see Walkthrough: Refer to resource outputs in another AWS CloudFormation stack.

How do you do output in CloudFormation?

The optional Outputs section declares output values that you can import into other stacks (to create cross-stack references), return in response (to describe stack calls), or view on the AWS CloudFormation console. For example, you can output the S3 bucket name for a stack to make the bucket easier to find.

How do you reference output from another CloudFormation stack?

To create a cross-stack reference, use the export field to flag the value of a resource output for export. Then, use the Fn::ImportValue intrinsic function to import the value in any stack within the same AWS Region and account. AWS CloudFormation identifies exported values by the names specified in the template.


1 Answers

If you do a describe_stacks call, it will return a list of Stack objects and each of those will have an outputs attribute which is a list of Output objects.

Is that what you are looking for?

like image 154
garnaat Avatar answered Oct 20 '22 11:10

garnaat