Hi,
What are the dynamic IP ranges used by AWS in Ireland for the EC2 service?
$ curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes| .[] | select((.region == "eu-west-1") and (.service == "EC2"))|.ip_prefix'|sed 's/"//g'
54.155.0.0/16
52.30.0.0/15
54.154.0.0/16
46.137.0.0/17
52.208.0.0/13
52.18.0.0/15
99.80.0.0/15
18.200.0.0/16
54.74.0.0/15
54.216.0.0/15
54.78.0.0/16
162.213.232.0/24
52.48.0.0/14
54.170.0.0/15
46.51.192.0/20
54.247.0.0/16
54.194.0.0/15
34.240.0.0/13
52.94.248.16/28
54.72.0.0/15
79.125.0.0/17
54.220.0.0/16
52.95.255.64/28
63.32.0.0/14
18.202.0.0/15
54.76.0.0/15
52.95.244.0/24
185.48.120.0/22
34.248.0.0/13
176.34.128.0/17
108.128.0.0/13
54.228.0.0/16
54.229.0.0/16
52.16.0.0/15
46.137.128.0/18
46.51.128.0/18
54.246.0.0/16
18.201.0.0/16
176.34.64.0/18
Wow! How many IPs are we actually talking about?
$ for range in `curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes| .[] | select((.region == "eu-west-1") and (.service == "EC2"))|.ip_prefix'|sed 's/"//g'`; do ipcalc $range|egrep '^Hosts/Net:'|awk '{print $2}'; done|paste -sd+|bc
4871634
Hope it helps!
Andrea