Get public ip,instance_id and Tag Name for AWS VPC.

aws ec2 describe-instances --filters Name=vpc-id,Values=vpc-06sd32we23 --query 'Reservations[].Instances[].[PublicIpAddress,InstanceId,Tags[?Key==`Name`].Value[]]' --output text | sed 's/None$/None\n/' | sed '$!N;s/\n/ /' 
Facebook Comments