Pat Myron
Pat Myron
potentially `cfripper`/`cfn-guard` as well
https://www.gstatic.com/ipranges/cloud.json ```python from collections import defaultdict import requests prefixes = requests.get('https://www.gstatic.com/ipranges/cloud.json').json()['prefixes'] regions = defaultdict(lambda: 0) sum = 0 for prefix in prefixes: try: mask = prefix['ipv4Prefix'].split('/')[1] except: pass regions[prefix['scope']] +=...
https://www.microsoft.com/en-us/download/details.aspx?id=41653 https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20200824.xml ```python from collections import defaultdict from xml.etree import ElementTree import requests regions = defaultdict(lambda: 0) sum = 0 for region in ElementTree.fromstring(requests.get('https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20200824.xml').text): for cidr in region: mask =...
thinking I should consider switching the Azure source: https://twitter.com/0xdabbad00/status/1275821557785309184 https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20220523.json https://www.microsoft.com/en-us/download/details.aspx?id=56519 ```python from collections import defaultdict import requests prefixes = requests.get('https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20220523.json').json()['values'] regions = defaultdict(lambda: 0) sum = 0 for prefixList...
@0xdabbad00 I think most of the CIDRs are listed multiple times in that newer Azure IP range file, looks like they're listed by service and then listed again by service...
assuming @seligman dealt with duplicates since his repos arrive at similar GCP/Azure totals after I handled most of the Azure duplicates, but @seligman has just over half as many AWS...
Glad to see region sizes relative to each other still look pretty much the same, that's the main data I was trying to get and was hoping duplicates were roughly...
@Cyclenerd https://github.com/GoogleCloudPlatform/region-picker/issues/10 would be another great addition, but GCP is the only one of the 3 I've never been able to automate scraping that information for: https://github.com/PatMyron/cloud#product--feature-regional-availability
just re-wrote using `matplotlib` for more easily automatically updatable graphing: ```python from collections import OrderedDict import matplotlib.pyplot as plt from operator import itemgetter map = {'AWS::DirectoryService::MicrosoftAD': 1263, 'AWS::MSK::Cluster': 1078, 'AWS::ImageBuilder::Image':...