Sceptre / sceptre

Build better AWS infrastructure
https://docs.sceptre-project.org
Other
1.48k stars 313 forks source link

Improve error message for failed deployments #897

Closed zaro0508 closed 3 years ago

zaro0508 commented 4 years ago

I'll see the below error messages in my sceptre deploy log however it doesn't tell me which file contains the error. It would be great if sceptre could provide a little more info in these situations. I I tried using the sceptre --debug flag however that didn't provide anymore info.

..
..
[2020-04-27 08:18:01] - prod/sc-product-ec2-linux-jumpcloud sc-product-ec2-linux-jumpcloud AWS::CloudFormation::Stack UPDATE_COMPLETE
"An error occurred (ValidationError) when calling the CreateStack operation: Template format error: unsupported structure."
..
..
[2020-04-27 08:46:42] - prod/sc-product-ec2-linux-jumpcloud sc-product-ec2-linux-jumpcloud AWS::CloudFormation::Stack UPDATE_COMPLETE
"An error occurred (ValidationError) when calling the CreateStack operation: Template format error: YAML not well-formed. (line 44, column 7)"
ngfgrant commented 4 years ago

Error handling is something that has come up in https://github.com/Sceptre/sceptre/issues/640 and https://github.com/Sceptre/sceptre/issues/564.

I think my suggestion in #640 is probably breaking but could be evolved?