Skip to content

Instantly share code, notes, and snippets.

@mathisve
Last active January 18, 2022 18:02
Show Gist options
  • Save mathisve/3779837ba2bad7374b3d12ae7b82679f to your computer and use it in GitHub Desktop.
Save mathisve/3779837ba2bad7374b3d12ae7b82679f to your computer and use it in GitHub Desktop.
get elastic ips with tag
#!/bin/bash
aws ec2 describe-addresses \
--filters "Name=tag-key,Values=Static" | jq -r '.Addresses[] | .PublicIp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment