Crates.io | awsipranges |
lib.rs | awsipranges |
version | 0.8.0 |
source | src |
created_at | 2024-07-19 04:14:51.052191 |
updated_at | 2024-09-18 07:29:20.02796 |
description | Quickly query the AWS IP Ranges |
homepage | https://github.com/cmlccie/awsipranges |
repository | https://github.com/cmlccie/awsipranges |
max_upload_size | |
id | 1308262 |
size | 230,997 |
Quickly query the AWS IP Ranges
awsipranges
allows you to search, filter, and use public AWS IP address ranges from the command line without writing complicated JSON parsing scripts or commands. This single-purpose CLI tool allows you to quickly answer questions like:
<address>
a public AWS IP address?
<some-cidr-block>
?ip-ranges.json
file?<some-supported-service>
in <some-region>
?<some-region>
?<some-local-zone>
?You could get answers to some of these ☝️ questions by filtering the JSON file, but awsipranges
features make filtering more accessible. awsipranges
parses and understands the structure of IPv4 and IPv6 CIDRs allowing you to work with IP ranges as they were meant to - as structured data - enabling you to output the results in human and machine friendly formats.
If you find this project useful, please consider giving it a star ⭐ on GitHub. Your support is greatly appreciated!
ip-ranges.json
to ${HOME}/.aws/ip-ranges.json
; refreshing the cache after 24 hours (by default).You can build and install awsipranges
from source or install pre-built binaries. awsipranges
supports:
OS | arm64 (AArch64) | amd64 (x86_64) |
---|---|---|
macOS | ✅ ⏬ Apple silicon | ✅ ⏬ Intel silicon |
Linux | ✅ GNU (glibc) ✅ Musl (libc) | ✅ ⏬ GNU (glibc) ✅ Musl (libc) |
Windows 10+ | ✅ ⏬ MSVC |
✅ = Supported ⏬ = Pre-built binaries available
Following Rust Platform Support for supported targets and OS and library version dependencies.
You can download and install pre-built binaries from the releases page or use the following installation scripts, which select and install the correct binary for your platform.
brew install cmlccie/tap/awsipranges
See the releases page for the latest {{version}}
.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/cmlccie/awsipranges/releases/download/{{version}}/awsipranges-installer.sh | sh
See the releases page for the latest {{version}}
.
powershell -c "irm https://github.com/cmlccie/awsipranges/releases/download/{{version}}/awsipranges-installer.ps1 | iex"
To build and install awsipranges
from source, you will need the Rust toolchain installed on your system. Then, you can use cargo install
to download and build your desired version.
Install published releases of awsipranges
from crates.io.
cargo install awsipranges
Install the latest, potentially unreleased, awsipranges
from the main
branch on GitHub.
cargo install --git https://github.com/cmlccie/awsipranges.git
If you encounter any issues or bugs or have ideas for enhancements and new features, please report them on our GitHub Issues page. Your feedback is a gift and helps us improve the tool for everyone!
I appreciate the following teams and individuals without which this tool would not be possible or as quickly constructed:
netrange
- Use LUA scripts to download and filter IP ranges from multiple cloud providers.aws-ip-ranges
- Provides the AWS IP range data as a const struct.I frequently need to get answers from the AWS IP ranges. I published a similar Python library while working at AWS. Then, when learning Rust, I needed something to build! 😎 This tool has been helpful to me - perhaps it will be useful to you.