PublicIpAddress
aws ec2 describe-instances | grep PublicIpAddress
aws ec2 describe-instances --query 'Reservations[*].Instances[?not_null(PublicIpAddress)]' | jq -r '.[][]|.PublicIpAddress+" "+(.Tags[]|select(.Key=="Name").Value)'
Related terms
aws ec2 describe-addresses | grep PublicIp
terraform show | grep -i public_ip
aws ec2 describe-instances | grep PublicDnsName
See also
Advertising: