Difference between revisions of "Jq -r"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | [[select]](.Key == "Name").Value)' | [[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | [[select]](.Key == "Name").Value)' | ||
+ | |||
+ | [[aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+.State.Name+" "+(.Tags[] | select(.Key == "Name").Value)']] | ||
+ | |||
aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address' | aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address' |
Latest revision as of 14:17, 16 January 2023
aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+.State.Name+" "+(.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 cloudformation describe-stacks --stack-name eksctl-your_cluster | jq -r '.Stacks[].Outputs[] | select(.OutputKey=="ServiceRoleARN") | .OutputValue' | cut -d/ -f2
aws ec2 describe-vpcs | jq -r '.Vpcs[]'
curl -s https://testnet.agoric.net/network-config | jq -r .chainName
See also[edit]
Advertising: