LoginSignup
0
2

More than 5 years have passed since last update.

AWSのリージョン・サービスごとのIPレンジ確認コマンド

Posted at

使用ツール

コマンド例

http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(.region=="ap-northeast-1") | .ip_prefix'
http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select((.service=="AMAZON") and (.region=="ap-northeast-1")) | .ip_prefix'
http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select((.service=="EC2") and (.region=="ap-northeast-1")) | .ip_prefix'
http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(.service=="CLOUDFRONT") | .ip_prefix'
http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select((.service=="S3") and (.region=="ap-northeast-1")) | .ip_prefix'
http -b https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select((.service=="ROUTE53_HEALTHCHECKS") and (.region=="ap-northeast-1")) | .ip_prefix'
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2