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
linux:jq [12/02/2025 10:54] – [Parameter Store] andrewlinux:jq [12/02/2025 11:30] (current) – [Extracting multiple values in one pass] andrew
Line 64: Line 64:
  
 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 98:
  
 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