Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created April 8, 2020 20:55
Show Gist options
  • Save rms1000watt/d048f5794f382143a1c8fd83bd8c7909 to your computer and use it in GitHub Desktop.
Save rms1000watt/d048f5794f382143a1c8fd83bd8c7909 to your computer and use it in GitHub Desktop.
Get Elastic IPs and filter based on tag via aws cli
aws ec2 describe-addresses --filters "Name=tag:Environment,Values=qa" | jq -r '.Addresses[].PublicIp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment