AWS provides a list of their IP ranges for you to use when configuring whitelists, firewalls, and other things. The list is available in JSON from:

To get it automated into your pipelines, or scripts, you can use curl and jq in this manner:

curl | jq .

This will give you all the IP’s, regions, and info.

To get more specific like the us-east-1 region and the AMAZON service, just add some more filters:

curl | jq '.prefixes[] | select(.region == "us-east-1") | select(.service == "AMAZON")'