peterkh / cumulus

Helps manage AWS CloudFormation stacks
Other
206 stars 40 forks source link

Better boto error output by default #1

Open peterkh opened 11 years ago

peterkh commented 11 years ago

To keep the output clean, by default boto logging level is set to CRITICAL. but when you have a template error, cumulus doesn't tell you anything useful about why it failed to create the stack. Should be able to log more information about the error without having to increase boto's level.

Current output by default: CRITICAL:cumulus.MegaStack:Creating stack scpnweb-pkh failed. Error: BotoServerError: 400 Bad Request

Boto logging level error: ERROR:boto:{"Error":{"Code":"ValidationError","Message":"Template error: resource xxxx references undefined symbol: SecurityGroup.","Type":"Sender"},"RequestId":"xxxx"} CRITICAL:cumulus.MegaStack:Creating stack scpnweb-pkh failed. Error: BotoServerError: 400 Bad Request

s1l0uk commented 10 years ago

Hi Peterk, I do not work as part of the cumulus team but love their work - I had this issue and found that cumulus still respects the boto config - adding:

[Boto] debug = 2

to my ~/.boto has helped me to debug - HTH!

Thanks, //P