Saturday, January 04, 2020

AWS-shell vs AWS CLI + JMESPath

https://github.com/awslabs/aws-shell

AWS Command Line Interface and aws-shell Sample for AWS Cloud9 - AWS Cloud9

"The AWS CLI and the aws-shell are unified tools that provide a consistent interface for interacting with all parts of AWS. You can use the AWS CLI or the aws-shell instead of the AWS Management Console to quickly run commands to interact with AWS, and some of these commands can only be run with the AWS CLI or the aws-shell."

AWS Shell demo video @ OReilly Learning (subscription or trial needed)
AWS CLI overview

https://bitbucket.org/awsdevguru/ code

JMESPath.org
a query language for JSON.

JMESPath Tutorial — JMESPath

locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)}

Result

{
  "WashingtonCities": "Bellevue, Olympia, Seattle"
}

No comments: