#!/usr/bin/env bash aws sts get-caller-identity --query Account aws ec2 describe-instances --query 'Reservations[].Instances[?PublicIpAddress != `null`].[InstanceId, PublicIpAddress]' --output text echo "= = ="