Difference between revisions of "Jq -r"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
  aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'
 
  aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'
 +
 +
[[aws ec2 describe-route-tables]] | [[jq -r]] '.RouteTables[] | select(.[[Tags]][].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'
  
  

Revision as of 07:00, 4 July 2022

aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'
aws ec2 describe-route-tables | jq -r '.RouteTables[] | select(.Tags[].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'


aws ec2 describe-vpcs | jq -r '.Vpcs[]'

See also

Advertising: