使用ツール
コマンド例
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'