This content originally appeared on DEV Community and was authored by Pau Sabates
If you work with AWS and specially managing VPCs, EC2s, subnets, etc you might find difficult to track how many ec2 are in a concrete subnet or in a VPC for example, or maybe you want a general view of the routing tables that your subnets have.
This is why I made this command line tool that works on unix/linux systems with python >=3.6.
To install it simply run:
pip install aws-net-scan
The cli will use the AWS profiles you configured wit aws cli that you have already defined in '~/.aws/' and by default it'll use the 'default' aws profile, if you want a concrete profile or just info about a concrete vpc run the following commands:
aws-net-scan
or
aws-net-scan --profile name_profile
or
aws-net-scan --vpc-id vpc-0ed0X857b02b8b
The result of the command can be seen in the following image:

AS you can see we run the command with the argument --profile to select the desired local AWS cli profile that we want to scan.
The current version scans for vpc,subnets,ec2s and routes, but in the next versions it will also scan for RDS, ECS and more CLI options will be added.
Follow the project here:
https://github.com/PauSabatesC/aws-net-scan
Hope this is helpful for you!
This content originally appeared on DEV Community and was authored by Pau Sabates
Pau Sabates | Sciencx (2021-04-25T21:21:08+00:00) Scan AWS network in your terminal. Retrieved from https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.