Last active
December 1, 2022 14:38
-
-
Save noamtamim/cd9bd8dbb946f3020cbf13abca2ffa7d to your computer and use it in GitHub Desktop.
AWS: IP ranges of API Gateway in us-east-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Assuming jq (https://stedolan.github.io/jq/) and curl are installed. | |
# Show only the entries for region = us-east-1 and service = API_GATEWAY. | |
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq --raw-output '.prefixes[] | select(.region=="us-east-1" and .service=="API_GATEWAY") | .ip_prefix' | |
<< //// | |
Output (2022/12/01): | |
3.216.135.0/24 | |
3.216.136.0/21 | |
3.216.144.0/23 | |
3.216.148.0/22 | |
3.235.26.0/23 | |
3.235.32.0/21 | |
3.238.166.0/24 | |
3.238.212.0/22 | |
44.206.4.0/22 | |
44.210.64.0/22 | |
44.212.176.0/23 | |
44.212.178.0/23 | |
44.212.180.0/23 | |
44.212.182.0/23 | |
Comma-separated: | |
3.216.135.0/24,3.216.136.0/21,3.216.144.0/23,3.216.148.0/22,3.235.26.0/23,3.235.32.0/21,3.238.166.0/24,3.238.212.0/22,44.206.4.0/22,44.210.64.0/22,44.212.176.0/23,44.212.178.0/23,44.212.180.0/23,44.212.182.0/23 | |
//// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After today's update, the ranges for API_GATEWAY on us-east-1 remain the same.