Open xoadrian opened 4 years ago
Hi, any updates on this? I'm working with nested stacks and it is pretty annoying to debug errors. Thanks!
I'm also trying to learn CDK right now and wondering how I'm supposed to debug anything when all I'm getting is something like "The following resource(s) failed to create: [Serverapp, EbsStackawselasticbeanstalkec2roleD9735CA4]."
News on this? Thanks!
Still an issue for us
wack
Just to highlight the OP's solution
The only chance to see the error is to constantly monitor the deployment on AWS CloudFormation Console
It actually worked for and unblocked me
I faced the same issue, but found the failed nested stack in the CloudFormation CLI under stacks and when toggling the dropdown from "Active" to "Deleted". The stack events for that one contained the failure reason.
same issue still, any dev willing to look for this?
Can we get an update on this? Super annoying to debug
Update please? It would help to see an error when debugging.
You can actually get the error on the CloudFormation console by going to the parent stack, finding the event for the child stack that failed, copying the name of the stack. Going to the sidebar and selecting 'Deleted Stacks', then searching for the child stack name.
Then look through the events of the deleted child stack to find the actual issue.
This is very far from user friendly.
@TheRealAmazonKendra It seems the closed PR didn't fix the issue. Any update on this ? it's been 2 years ...
similar issues here, I'm receiving an error when try to deploy and getting this message ❌ Deployment failed: Error: The stack named xxx failed to deploy: UPDATE_ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: See the details in CloudWatch Log Stream: 2023/09/25/[$LATEST]1865cd90f7eb4da6aac8239dad6573d4 (RequestId: b550d905-e34b-41f9-a9b6-0c87986425f0)
When I went to the logs there is no information about the error
Change https://github.com/aws/aws-cdk/pull/27318 is released with aws-cdk 2.100.0. Can you test with this version and see if this issue is resolved?
Change #27318 is released with aws-cdk 2.100.0. Can you test with this version and see if this issue is resolved?
Worked for me with aws-cdk 2.123.0.
If it is CREATE_FAILED and it happened to rollback, please filter the CloudFormation list and select "Deleted". The actual reason will be in this stack which has been rolled back or been deleted.
main/root stack is not properly reporting errors from nested stacks, there is no way to know why it actually failed because the error is generalized that some resources could not be created, but why, there is no reason. The only chance to see the error is to constantly monitor the deployment on AWS CloudFormation Console, and once it starts to roll back and delete nested stacks you can quickly see why the nested stack failed in events tab.
E.g.:
as you can see there is no reason why it failed, just saying that some resources failed to create. While actually the error on the nested stack events tab is:
E.g.:
or
or
So there is no way to know about those errors because on roll back those stacks are removed, and developer will never know why it failed.
Reproduction Steps
Just add a nested stack and try to simulate the above error examples:
-
or.
Error Log
already specified above
Environment
Other
I found this issue opened as a feature #4489 but I don't think it is a feature, rather it is a bug, since the feature of having Nested Stacks exists, this means that error reporting for nested stack to be chained in the parent wasn't.
This is :bug: Bug Report