serverless: Show all errors from cloudformation in CLI on stack update failure
Serverless Framework Version:
1.0.0-beta.1.1
Operating System:
OSX Yosemite 10.10.5 (14F27)
Expected Behavior:
Show all errors that occurred to cause cloudformation to fail in CLI, not just the last one.
Actual Behavior:

This error is in the logs but the root cause was an error that caused the issue

Actual error was Property AttributeDefinitions is inconsistent with the KeySchema of the table and the secondary indexes but I had to go into AWS admin to see it.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29 (28 by maintainers)
@serverless/team Making some progress. What do you think about the output so far?
I’m going with
--verbosequite common amongst CLI’s, thanks for pointing this out @ac360!Regarding the actual output I will go with
Cloudformation -👍We could fetch for new stack events every x seconds and break if any of the following states are noticed:
@flomotlik I would be willing to take on this task. Let me know if it’s oke 👍
Can’t we just
tailthe CloudFormation deployment events during the deployment? With some nicechalkcolors like the AWS CloudFormation console shows it forCREATE_IN_PROGRESS,UPDATE_IN_PROGRESS,DELETE_IN_PROGRESS, etc. Would totally skip the need to have the AWS console open.I’ve run into this problem as well, many times… On my first deployment and lots of subsequent deployments. Additionally, I often get an
undefinedmessage too.IMO, this is a big priority. It’s currently killing the core development experience. Fortunately, this doesn’t seem hard to fix.
Proposal:
describeStackEventsvia SDK.If we can decide on the overall proposal, I bet someone in the community could knock this out in a few hours, if not myself because implementing it is probably faster than continuing to go to the AWS Console to uncover the real error 😛
+1 to @mthenw’s comment, with one design nitpik to consistently use hyphens instead of colons. Not a big deal, but colons seem to be used heavily in the CF resource names, and don’t want to add confusion. +1 to @flomotlik’s comment that we hide CF events by default (as long as we print out the full CF error at the end). I recommend the common
--verboseflag. And trimming/refining the printed statements by Serverless so that they inform the user that CloudFormation is what’s being used.Examples:
Done. This looks amazing. I want to use it instantly ☺️
Okidoki, I will start working on it and hopefully have something by the beginning of next week.