Skip to content

Instantly share code, notes, and snippets.

@vincedgy
Created March 19, 2019 09:51
Show Gist options
  • Save vincedgy/907040c990ddc833c5b5900f63884f09 to your computer and use it in GitHub Desktop.
Save vincedgy/907040c990ddc833c5b5900f63884f09 to your computer and use it in GitHub Desktop.
# AWS CLI Snippets
## List EC2 Public IP, statuses and Name (like a short list in the console)
```terminal
aws ec2 describe-instances --query "Reservations[].Instances[].[Tags[?Key=='Name'].Value|[0], InstanceId, State.Name, PublicIpAddress]"
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment