Using Amazon CLI, is there a way to get the public ip address of the current EC2? I\'m just looking for the single string value, so not the json response describe-addresses
Get attached InstanceID with PublicIP.
aws ec2 describe-network-interfaces --query NetworkInterfaces[*].[Attachment.[InstanceId],Association.[PublicIp]] --output=json