Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Created March 18, 2016 05:35
Show Gist options
  • Save tkawachi/f28b9c0d5b4bf447427d to your computer and use it in GitHub Desktop.
Save tkawachi/f28b9c0d5b4bf447427d to your computer and use it in GitHub Desktop.
EC2の東京regionで使われている IP アドレス範囲を得る
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '[ .prefixes | .[] | select(.region=="ap-northeast-1") | select(.service=="EC2") | .ip_prefix ]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment