Skip to content

Instantly share code, notes, and snippets.

@rtacconi
Last active February 7, 2017 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtacconi/2d90655ad55324d697ab9f1907b70c5b to your computer and use it in GitHub Desktop.
Save rtacconi/2d90655ad55324d697ab9f1907b70c5b to your computer and use it in GitHub Desktop.
AWS CLI list instances name with public IP
aws ec2 describe-instances \
--query 'Reservations[*].Instances[*].[Tags[?Key==`Name`].Value|[0],PublicIpAddress]' \
--output table --region us-east-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment