All providers

AWS IP Ranges

Amazon Web Services publishes a structured JSON feed of all its IP ranges, tagged by service (EC2, S3, CloudFront, Route 53) and region. ~10k IPv4 + 5.7k IPv6 prefixes.

Overview

AWS operates two primary ASNs: AS16509 (most cloud services) and AS14618 (Amazon retail / corporate). The ip-ranges.json file is the authoritative source — it tags each prefix with the service (EC2, S3, CLOUDFRONT, ROUTE53_RESOLVER, etc.) and the AWS region (us-east-1, eu-west-2, ap-southeast-1, ...). The file updates several times per day; AWS recommends polling daily.

Services on these IPs

Common services to filter by in ip-ranges.json: EC2 (any virtual machine — 1.8k+ prefixes), AMAZON (catch-all — 5.9k+ prefixes), S3 (object storage endpoints — region-specific), CLOUDFRONT (CDN edge), ROUTE53_RESOLVER (DNS), API_GATEWAY (API endpoints), GLOBALACCELERATOR. The "EC2" service is the broadest customer-facing — any IP there could be a customer VM.

How to detect AWS IPs

For Amazon-owned bots (e.g., Alexa crawler), reverse DNS points to *.amazonaws.com or *.compute.amazonaws.com and forward DNS resolves back. For general AWS ownership, fetch ip-ranges.json and check membership. Operationally: AS16509 in ASN lookup = AWS.

When this matters

Security teams allow/block specific AWS services (e.g., allow CloudFront, block EC2 ranges from certain regions). Compliance reports need AWS region tagging for data residency. Threat intel correlates abuse against EC2 ranges to identify rented attack infrastructure.

Caveats

EC2 IPs are dynamically assigned to customers. A connection from an EC2 IP says nothing about who is behind it — could be Netflix, a startup, or a botnet operator. Always check ip-ranges.json freshness; stale data causes false negatives when AWS adds new ranges.

Sample IPv4 ranges (8)

Verified sample
CIDRServiceRegion
3.5.140.0/22EC2ap-northeast-2
23.254.120.0/21EC2sa-west-1
35.180.0.0/16EC2eu-west-3
120.52.22.96/27CLOUDFRONTGLOBAL
13.113.196.64/26CLOUDFRONTap-northeast-1
52.219.170.0/23S3eu-central-1
3.4.12.4/32AMAZONeu-west-1
15.190.244.0/22AMAZONap-east-2

Sample IPv6 ranges (3)

CIDRService
2406:daba:f000::/40EC2
2600:9000:5206::/48EC2
2600:9000:3000::/36CLOUDFRONT
enesvizharptrujadefrkoittrplnlidthhi