exports
Creates, updates, deletes, gets or lists an exports resource.
Overview
| Name | exports |
| Type | Resource |
| Id | aws.cloudformation.exports |
Fields
The following fields are returned by SELECT queries:
- list_exports
| Name | Datatype | Description |
|---|---|---|
exporting_stack_id | string | The stack that contains the exported output name and value. |
name | string | The 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. |
value | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_exports | select | region | NextToken | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
NextToken | string | The token for the next set of items to return. (You received this token from a previous call.) |
SELECT examples
- list_exports
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 }}'
;