{"id":27962614,"url":"https://github.com/happydemics/aws-ip-ranges","last_synced_at":"2026-04-24T16:05:18.912Z","repository":{"id":61233230,"uuid":"547384661","full_name":"happydemics/aws-ip-ranges","owner":"happydemics","description":"Ruby Gem - Fetching AWS ip ranges with ease","archived":false,"fork":false,"pushed_at":"2023-11-13T13:41:26.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T11:40:28.007Z","etag":null,"topics":["aws","gem","library","managed-by-terraform","ruby","semver"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/aws-ip-ranges","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/happydemics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2022-10-07T15:39:35.000Z","updated_at":"2024-08-09T04:46:54.000Z","dependencies_parsed_at":"2023-11-13T15:07:06.887Z","dependency_job_id":null,"html_url":"https://github.com/happydemics/aws-ip-ranges","commit_stats":{"total_commits":6,"total_committers":5,"mean_commits":1.2,"dds":0.6666666666666667,"last_synced_commit":"571f4ac51f2dfee2296b6646406974bdda1df20f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happydemics%2Faws-ip-ranges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happydemics%2Faws-ip-ranges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happydemics%2Faws-ip-ranges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happydemics%2Faws-ip-ranges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happydemics","download_url":"https://codeload.github.com/happydemics/aws-ip-ranges/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252497985,"owners_count":21757725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","gem","library","managed-by-terraform","ruby","semver"],"created_at":"2025-05-07T19:56:41.984Z","updated_at":"2026-04-24T16:05:13.848Z","avatar_url":"https://github.com/happydemics.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `aws-ip-ranges`\n\n[![Gem Version](https://badge.fury.io/rb/aws-ip-ranges.svg)](https://badge.fury.io/rb/aws-ip-ranges)\n![Workflow](https://github.com/happydemics/aws-ip-ranges/actions/workflows/main.yaml/badge.svg)\n\nRetrieve AWS IP ranges with ease.\n\n## Installation\n\nRun:\n\n```sh\ngem install aws-ip-ranges\n```\n\n## Usage\n\n### Code\n\n```ruby\nAwsIpRanges.fetch(service: ['cloudfront', 's3']) # =\u003e [#\u003cIPAddr: IPv4:3.2.34.0/255.255.255.192\u003e,  #\u003cIPAddr: IPv4:3.5.140.0/255.255.252.0\u003e]\nAwsIpRanges.fetch(region: 'eu-west-3')\nAwsIpRanges.fetch(only_ipv4: true)\nAwsIpRanges.fetch(only_ipv6: true)\n```\n\n### CLI\n\nExecute:\n\n```sh\n$ aws-ip-ranges list\n35.172.155.192/27\n35.172.155.96/27\n44.192.134.240/28\n...\n2600:1f70:c000:400::/56\n```\n\nSee the help for more usage:\n\n```sh\nCommand:\n  aws-ip-ranges list\n\nUsage:\n  aws-ip-ranges list\n\nDescription:\n  List all AWS IP ranges\n\nOptions:\n  --[no-]only-ipv6                  # Whether to include only IPv6 ranges., default: false\n  --[no-]only-ipv4                  # Whether to include only IPv4 ranges., default: false\n  --service=VALUE1,VALUE2,..        # Which services to include. By default, includes all.\n  --region=VALUE1,VALUE2,..         # Which regions to include. By default, includes all.\n  --help, -h                        # Print this help\n\nExamples:\n  aws-ip-ranges list                                             # Prints all AWS IP ranges\n  aws-ip-ranges list --only-ipv4                                 # Prints all AWS IPv4 ranges\n  aws-ip-ranges list --only-ipv6 --service=cloudfront,global     # Prints AWS Cloudfront and Global IPv6 ranges\n  aws-ip-ranges list --only-ipv6 --service=s3 --region=eu-west-1 # Prints AWS S3 IPv6 ranges in the eu-west-1 region\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nWe are not accepting outside contribution on this library at the moment.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappydemics%2Faws-ip-ranges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappydemics%2Faws-ip-ranges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappydemics%2Faws-ip-ranges/lists"}