Skip to main content

exports

Creates, updates, deletes, gets or lists an exports resource.

Overview

Nameexports
TypeResource
Idaws.cloudformation.exports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
exporting_stack_idstringThe stack that contains the exported output name and value.
namestringThe name of exported output value. Use this name and the Fn::ImportValue function to import the associated value into other stacks. The name is defined in the Export field in the associated stack's Outputs section.
valuestringThe value of the exported output, such as a resource physical ID. This value is defined in the Export field in the associated stack's Outputs section.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_exportsselectregionNextTokenLists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function. For more information, see Get exported outputs from a deployed CloudFormation stack.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)

SELECT examples

Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function. For more information, see Get exported outputs from a deployed CloudFormation stack.

SELECT
exporting_stack_id,
name,
value
FROM aws.cloudformation.exports
WHERE region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;