Last active
September 20, 2021 02:19
-
-
Save nabsha/dde69d9a207eb642edc18fafb9beb0d5 to your computer and use it in GitHub Desktop.
Get all AWS EC2 IP Ranges for a region and a service
This file contains 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/sh | |
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="ap-southeast-2") | select(.service=="EC2") | .ip_prefix' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment