Public | Automated Build

Last pushed: 2 years ago
Short Description
Check a list of IPs for AWS addresses
Full Description

Check for an AWS IP

Have an ip address? Want to know if it belongs to one of the AWS ranges? This is the utility for you!

Installation

There is no install. There is a Docker image you can use!

Usage

$ echo 1.1.1.1 | docker run -i --rm metcalfc/check_aws
Found 1 unique addresses
Found 0 AWS addresses

What if you want to know what IPs are AWS or what IPs aren't? There are a couple command line arguments for you.

Usage: check_aws.rb [options]
    -a, --aws                        Print IPs in AWS ranges
    -n, --non-aws                    Print IPs not in AWS ranges
    -h

One address per line and passed in on stdin.

$ echo "1.1.1.1\n2.2.2.2\n" | docker run -i --rm metcalfc/check_aws -n
Found 2 unique addresses
NOT found in an AWS range: 1.1.1.1
NOT found in an AWS range: 2.2.2.2
Found 0 AWS addresses

Lots of information is available if AWS addresses are found.

$ echo 50.19.0.1 | docker run -i --rm metcalfc/check_aws -a
Found 1 unique addresses
50.19.0.1 found in AWS range 50.19.0.0/16, region us-east-1, service AMAZON
Found 1 AWS addresses
Found the following regions:
  us-east-1
Found the following ranges:
  50.19.0.0/16
alias check-aws='docker run -i --rm metcalfc/check_aws'
Docker Pull Command
Owner
metcalfc
Source Repository