Listing stacks that import an exported output value - AWS CloudFormation

Listing stacks that import an exported output value

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 the imports that reference exported output values before you can delete or modify the exported output values.

For more information about exporting and importing output values, see Exporting stack output values.

To list stacks that import an exported output value (console)
  1. In the CloudFormation console, from the CloudFormation navigation pane, choose Exports.

  2. 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 the stacks that are importing the value.

To list stacks that import an exported output value (AWS CLI)
  • Run the aws cloudformation list-imports command, providing the name of the exported output value.

    CloudFormation returns a list of stacks that are importing the value.

To list stacks that import an exported output value (API)
  • Run the ListImports API, providing the name of the exported output value.

    CloudFormation returns a list of stacks that are importing the value.