3 Ways to retrieve values from awscli json output

Kieran Yio
4 min readNov 19, 2022

The AWS CLI (AWS Command Line Interface) is a tool provided by AWS to manage your resources and it is commonly used as part of the DevOps process. For example, assuming a role, baking an image, taking a snapshot, uploading files to s3, increasing auto scaling capacity limit, and the list can go on and on.

By default, when using AWS CLI to run commands, the output will be in json format. There are times where you need to retrieve certain values from the output and use it for your next command but the system does not have the binary that you want…

--

--

Kieran Yio

Technologist | AWS Community Builder | Sharing my knowledge with the community