{"id":20520934,"url":"https://github.com/ryanreece/aws-cloudfront-ip-ranges","last_synced_at":"2026-05-08T03:07:24.321Z","repository":{"id":223161645,"uuid":"758959897","full_name":"ryanreece/aws-cloudfront-ip-ranges","owner":"ryanreece","description":"Python script to fetch the latest IPv4 and IPv6 prefixes from the official AWS IP address ranges list. Alternate method via curl + jq.","archived":false,"fork":false,"pushed_at":"2024-03-01T21:48:39.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:26:01.005Z","etag":null,"topics":["aws","cloudfront","curl","jq"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanreece.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-17T15:26:03.000Z","updated_at":"2024-12-21T11:27:39.000Z","dependencies_parsed_at":"2024-11-16T04:31:41.720Z","dependency_job_id":null,"html_url":"https://github.com/ryanreece/aws-cloudfront-ip-ranges","commit_stats":null,"previous_names":["ryanreece/aws-cloudfront-ip-ranges"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryanreece/aws-cloudfront-ip-ranges","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanreece%2Faws-cloudfront-ip-ranges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanreece%2Faws-cloudfront-ip-ranges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanreece%2Faws-cloudfront-ip-ranges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanreece%2Faws-cloudfront-ip-ranges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanreece","download_url":"https://codeload.github.com/ryanreece/aws-cloudfront-ip-ranges/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanreece%2Faws-cloudfront-ip-ranges/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32764783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloudfront","curl","jq"],"created_at":"2024-11-15T22:24:42.765Z","updated_at":"2026-05-08T03:07:24.303Z","avatar_url":"https://github.com/ryanreece.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS CloudFront IP Ranges\n\nA simple Python script for fetching and parsing AWS IP ranges, specifically focusing on CloudFront services. It leverages the AWS `ip-ranges.json` data to extract IPv4 and IPv6 ranges associated with CloudFront, helping users to programmatically access and utilize this information for various purposes such as updating firewall rules, network monitoring, and security configurations\n\n## Features\n\n- Fetch AWS IP ranges from the official AWS `ip-ranges.json` URL.\n- Filter and extract CloudFront-related IP ranges (both IPv4 and IPv6).\n- Easy to integrate with other Python scripts or projects.\n\n## Installation\n\nThis project uses Poetry for dependency management. If you do not have Poetry installed, please follow the instructions on the [Poetry website](https://python-poetry.org/docs/#installation) to install it.\n\n```bash\npoetry install\n```\n\n## Running the Script\n\n```bash\npoetry run python aws_cloudfront_ip_ranges/aws_cloudfront_ip_ranges.py\n```\n\n## One liner with curl + jq\n\nIf you want a quick and easy way to retrieve the CloudFront or any other service ip address, simply use curl to download the file and then parse the data using `jq`.\n\n### Get IPv4 CloudFront Addresses\n\n```bash\ncurl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service == \"CLOUDFRONT\") | .ip_prefix'\n```\n\n### Get IPv6 CloudFront Addresses\n\n```bash\ncurl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.ipv6_prefixes[] | select(.service == \"CLOUDFRONT\") | .ipv6_prefix'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanreece%2Faws-cloudfront-ip-ranges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanreece%2Faws-cloudfront-ip-ranges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanreece%2Faws-cloudfront-ip-ranges/lists"}