User Tools

Site Tools


linux:jq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:jq [12/02/2025 10:54] – [Parameter Store] andrewlinux:jq [28/05/2025 09:30] (current) – [jq - json parser] andrew
Line 3: Line 3:
 jq tutorial:- [[https://cameronnokes.com/blog/working-with-json-in-bash-using-jq/]] jq tutorial:- [[https://cameronnokes.com/blog/working-with-json-in-bash-using-jq/]]
  
 +
 +See also [[bash-json|Embedding a BASH variable in JSON]]
 ====== AWS Policy - get ARN ====== ====== AWS Policy - get ARN ======
  
Line 64: Line 66:
  
 Raw outpput for NAT gateways Raw outpput for NAT gateways
-<code>+<code json>
 $ aws ec2 describe-nat-gateways $ aws ec2 describe-nat-gateways
 { {
Line 98: Line 100:
  
 Code to extract just NAT id, state and Elastic ip in use:- Code to extract just NAT id, state and Elastic ip in use:-
-<code>+<code bash>
 $ aws ec2 describe-nat-gateways | jq ".NatGateways | .[] | .NatGatewayId, .State, .NatGatewayAddresses[].NetworkInterfaceId" $ aws ec2 describe-nat-gateways | jq ".NatGateways | .[] | .NatGatewayId, .State, .NatGatewayAddresses[].NetworkInterfaceId"
  
linux/jq.1739357678.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki