News for hackers. Stuff that matters.
Re:Show HN: Bash-My-AWS – CLI Commands for AWS by Terretta on Wednesday January 01, 2020 @11:32AM (#21928756)
Interesting this requires ‘jq’ when JMESpath is built into AWS CLI already.

http://jmespath.org/

Re:Show HN: Bash-My-AWS – CLI Commands for AWS by failmode on Wednesday January 01, 2020 @05:45PM (#21931261)
jq is only used in three of the >120 functions (for sort-keys functionality). All the rest use JMESPath.

If anyone can help with a solution I'd be delighted to remove the dependency on jq.

https://github.com/bash-my-aws/bash-my-aws/blob/b74d92a902bb...

Re:Show HN: Bash-My-AWS – CLI Commands for AWS by kafana on Wednesday January 01, 2020 @10:43PM (#21932853)
I would definitely keep jq dependency there, especially if you plan to expand the code base to provide ecs and Fargate commands. You will quickly run into use cases where JMESpath is not capable of parsing json outputs for different tasksdefintion commands.
Re:Show HN: Bash-My-AWS – CLI Commands for AWS by kesor on Wednesday January 01, 2020 @02:08PM (#21929836)
jmespath has quite a few limitations, even the official AWS CLI documentation states that for the more advanced stuff `jq` is probably the go to tool.

https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-o...

"For more advanced filtering that you might not be able to do with --query, you can consider jq, a command line JSON processor. You can download it and find the official tutorial at http://stedolan.github.io/jq/."

Re:Show HN: Bash-My-AWS – CLI Commands for AWS by fiddlerwoaroof on Wednesday January 01, 2020 @11:46AM (#21928855)
I find jq’s language a lot nicer than JMESpath and trend to use it whenever possible
Re:Show HN: Bash-My-AWS – CLI Commands for AWS by justin_oaks on Wednesday January 01, 2020 @03:41PM (#21930476)
My HN comment detailing several limitations of JMESPath: https://news.ycombinator.com/item?id=16400320