Added error handling of AWS SDK errors when using groups command#22
Added error handling of AWS SDK errors when using groups command#22jamesgawn wants to merge 1 commit intoTylerBrock:masterfrom
Conversation
|
Great, thank you! Two questions:
|
|
I found that when using the canonical Docker container my credentials were not being picked up via a profile in my .aws folder for any command. I've not quite cracked why... as it works fine if I repackage the container. I added this bit of error handling to my fork, while attempting to repackage the docker container in order to diagnose what was going on. I can see that the commands other than groups already seem to return the AWS SDK error. Do you think it's worth trying to standardise capture of the AWS error across all the commands? |
|
I just built (This account has many log groups, Probably due to my default profile requiring an assume-role? |
It can be a little confusing when diagnosing profile configuration issues when first using the tool given the groups command is likely the first one you'd attempt to use. I've added some simple error handling for this command to ensure feedback is provided to make it easier for anyone using the tool to diagnose any issue.