ERROR REFERENCE
CloudFormation could not find the imported stack export
The consumer stack uses Fn::ImportValue, but no export with
that exact name is available in the account and Region where the
deployment is running. This is a cross-stack dependency problem, not
an IAM denial or a rollback root cause.
WHAT IT MEANS
The export name is missing at resolution time
An error occurred (ValidationError) when calling the CreateChangeSet operation: No export named shared-vpc-id found
CloudFormation resolves an imported output from a producer stack in the
same account and Region. The producer may not have run yet, its
Outputs / Export: Name may have changed, or
the consumer is using the wrong account, Region, profile, or pipeline
environment.
NEXT CHECK
Compare the name, producer, account, and Region
-
Preserve the exact name. Copy the export name from
the error and compare it with the consumer's
Fn::ImportValueafter SAM or another transform has produced the submitted template. -
List exports in the failing context. Run
with the same profile or role used by the deployment. If the name is absent, CloudFormation is reporting the dependency accurately.aws cloudformation list-exports --region <region> -
Check the producer stack. Confirm its
Outputssection still defines the exactExport: Name, deploy that stack first, and wait for it to finish before the consumer runs. Keep an export name stable once other stacks depend on it. -
Check the boundary. CloudFormation exports and
Fn::ImportValueresolve only within the same account and Region. For an intentional cross-account or cross-Region handoff, use an explicit parameter or a supported output-sharing mechanism instead of a local export.
AUTOMATE THE TRIAGE
Diagnose this automatically
SAM Doctor recognizes the missing-export marker (high confidence) and points at the producer stack and deployment boundary instead of sending you to IAM or leaving you with rollback noise. Runs locally; no AWS access, no log upload.
python -m pip install sam-doctor
sam-doctor diagnose deployment.log --format markdown
RELATED
Related errors
- An export cannot change while another stack imports it — the producer exists, but consumers still pin its name or value.
- An embedded stack was not successfully created or updated — inspect the child stack when the dependency is nested.
- CloudFormation resource creation or update failed — the broad wrapper when no more specific export marker is present.