Closed ozbillwang closed 8 years ago
Hi @SydOps, thanks for the feedback.
You can pipe the output to another command such as grep:
saws> aws ec2 ls --ec2-tag-key TAGKEY | grep 'PublicIp\|PrivateIpAddress\|InstanceId'
"InstanceId": "i-FOOOBARR",
"PrivateIpAddress": "w.x.y.z",
"PrivateIpAddress": "w.x.y.z",
I have several ec2 instances with tag as:
So I like to list all production instances IP address only, how to prepare the command? Output should be Name and IP.