💾 Archived View for cfdocs.wetterberg.nu › using-cfn-stack-imports.gemini captured on 2024-05-12 at 15:28:36. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Listing stacks that import an exported output value
Search
When you export an output value, stacks that are in the same AWS account and region can import that value. To see which stacks are importing a particular output value, use the list import action.
To delete or modify exported output values, use the `ListImports` action to track which stacks are importing them, and then modify those stacks to remove the Fn::ImportValue functions that reference the output values. You must remove all of the imports that reference exported output values before you can delete or modify the exported output values.
Fn::ImportValue
For more information about exporting and importing output values, see Exporting stack output values.
Exporting stack output values
- To list stacks that import an exported output value \(console\)*
- In the AWS CloudFormation console, from the CloudFormation navigation pane, choose Exports.[Image NOT FOUND]
- To see which stacks import a given export value, choose the Export Name for that export value. CloudFormation displays the export details page, which lists all of the stacks that are importing the value.
AWS CloudFormation console
- To list stacks that import an exported output value \(CLI\)*
- Run the aws cloudformation list-imports command, providing the name of the exported output value.AWS CloudFormation returns a list of stacks that are importing the value.
aws cloudformation list-imports
- To list stacks that import an exported output value \(API\)*
- Run the https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListImports.html API, providing the name of the exported output value.AWS CloudFormation returns a list of stacks that are importing the value.
https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListImports.html