Skip to content

Instantly share code, notes, and snippets.

@0xdabbad00
Last active January 16, 2021 23:14
Show Gist options
  • Save 0xdabbad00/d05b752c84712781c7ec7c040585bf3a to your computer and use it in GitHub Desktop.
Save 0xdabbad00/d05b752c84712781c7ec7c040585bf3a to your computer and use it in GitHub Desktop.
AWS services per region using botocore endpoints
cat botocore/data/endpoints.json | jq -cr '.partitions[0].services | keys[] as $k | .[$k] | .endpoints|to_entries[]| .key +"\t"+ $k' | sort | cut -f1 | uniq -c | sort -nr | sed 's/^ *\([0-9][0-9]*\) /\1 /' | grep -v fips
126 us-east-1
116 us-west-2
115 eu-west-1
101 ap-southeast-2
100 ap-northeast-1
97 eu-central-1
95 us-east-2
94 ap-southeast-1
82 ap-northeast-2
78 us-west-1
78 ap-south-1
77 eu-west-2
73 ca-central-1
65 sa-east-1
59 eu-west-3
42 eu-north-1
@PatMyron
Copy link

PatMyron commented May 28, 2019

curling the latest version: https://raw.githubusercontent.com/boto/botocore/master/botocore/data/endpoints.json

curl -s -N https://raw.githubusercontent.com/boto/botocore/master/botocore/data/endpoints.json | jq -cr '.partitions[0].services | keys[] as $k | .[$k] | .endpoints|to_entries[]| .key +"\t"+ $k' | sort | cut -f1 | uniq -c | sort -nr | sed 's/^ *\([0-9][0-9]*\) /\1    /' | grep -v fips
175    us-east-1
165    us-west-2
161    eu-west-1
156    ap-southeast-2
155    ap-northeast-1
151    eu-central-1
145    ap-southeast-1
138    us-east-2
138    eu-west-2
134    ap-northeast-2
124    ap-south-1
117    ca-central-1
114    us-west-1
111    sa-east-1
111    eu-north-1
108    eu-west-3
93    ap-east-1
88    me-south-1
81    eu-south-1
73    af-south-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment