AWS提供了查询接口,参考 https://ip-ranges.amazonaws.com/ip-ranges.json
样例,查询 新加坡 区域的所有IP网段:
``` curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="ap-southeast-1") | select(.service=="S3") | .ip_prefix' ```
#1