ERROR REFERENCE
Embedded stack was not successfully created/updated
With nested stacks (and SAM's AWS::Serverless::Application),
the parent stack's event only says an embedded stack failed - that
is a symptom, not the cause. The real root cause lives in the child
stack's own event stream, and it is often deleted by rollback
before anyone reads it.
WHAT IT MEANS
What this event means
CloudFormation reports the nested stack's failure on the parent as
a single summary line - Embedded stack ... was not
successfully created - with no detail about which resource
inside the child stack actually failed or why. That detail exists
only in the child stack's own events, and CloudFormation's rollback
can delete the child stack, and its event history with it, before
it is ever read.
FIX
How to fix it
-
Capture the child stack's events before rollback deletes
them, or redeploy with
--disable-rollbackto keep the stack around while debugging. -
Query the child stack directly (read-only) using
the full nested stack ARN from the parent's message - this still
works once deletion has started:
aws cloudformation describe-stack-events --stack-name <child-stack-arn> -
Find the child's first
CREATE_FAILEDorUPDATE_FAILEDresource event and fix that cause; only edit the parent template afterward.
AUTOMATE THE TRIAGE
Diagnose this automatically
SAM Doctor recognizes the nested-stack propagation message (high confidence) and reports it instead of the generic CREATE_FAILED or rollback findings, since the parent's own event is not the actionable one. Runs locally; no AWS access, no log upload.
python -m pip install sam-doctor
sam-doctor diagnose deployment.log --format markdown
RELATED
Related errors
- CREATE_FAILED / UPDATE_FAILED — the generic form this rule takes priority over on nested-stack logs.
- Stack entered rollback — what the parent stack does once the embedded stack fails.