wget https://ip-ranges.amazonaws.com/ip-ranges.json
grep -i -B 1 '"region": "GLOBAL",' ip-ranges.json | grep '"ip_prefix":' | awk -F'"' '{print $4}' > AWS-Global-v4.txt
grep -i -B 1 '"region": "GLOBAL",' ip-ranges.json | grep '"ipv6_prefix":' | awk -F'"' '{print $4}' > AWS-Global-v6.txt