Last active
July 23, 2020 03:55
-
-
Save IAmStoxe/7f60dc7f21946e2408d20b8c1fbe2c2b to your computer and use it in GitHub Desktop.
Replace EC2 with the target service (i.e. S3, CLOUDFRONT, etc. - case sensitive)
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
| curl -s 'https://ip-ranges.amazonaws.com/ip-ranges.json' | | |
| jq -r '.prefixes[] | select(.service | contains("EC2")) | .ip_prefix' | | |
| sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment