How can I find the IP address ranges that Amazon S3 uses?
I don't know how to find the IP address ranges that Amazon Simple Storage Service (Amazon S3) uses.
"I don't know how to find the IP address ranges that Amazon Simple Storage Service (Amazon S3) uses.ResolutionFirst, download the JSON file that contains all AWS IP address ranges. Then, search the file for the string "service": "S3".On Linux or macOS machines, you can use a tool, such as the jq tool (on the GitHub website), to parse the JSON response. For example, the following command parses the JSON file for all IPv4 addresses that Amazon S3 uses:curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service=="S3") | .ip_prefix'52.95.154.0/2352.219.64.0/2252.92.72.0/2252.92.64.0/2252.95.156.0/24....As another example, the following command parses the JSON response for all IPv4 addresses that Amazon S3 uses in a specific AWS Region (us-east-1):curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="us-east-1") | select(.service=="S3") | .ip_prefix'54.231.0.0/1752.92.16.0/2052.216.0.0/15On Windows operating systems, you can use AWS Tools for PowerShell. The following Get-AWSPublicIpAddressRange command filters for all IPv4 and IPv6 addresses that Amazon S3 uses:Get-AWSPublicIpAddressRange -ServiceKey S3 | select IpPrefixIpPrefix--------52.47.73.72/2913.55.255.216/2952.15.247.208/29......2a05:d07c:2000::/402a05:d000:8000::/402406:dafe:2000::/40...For more examples, see Filtering the JSON file.Related informationAWS IP address rangesFollow"