Scan AWS network in your terminal

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 i…


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:
example_cli

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Scan AWS network in your terminal." Pau Sabates | Sciencx - Sunday April 25, 2021, https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/
HARVARD
Pau Sabates | Sciencx Sunday April 25, 2021 » Scan AWS network in your terminal., viewed ,<https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/>
VANCOUVER
Pau Sabates | Sciencx - » Scan AWS network in your terminal. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/
CHICAGO
" » Scan AWS network in your terminal." Pau Sabates | Sciencx - Accessed . https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/
IEEE
" » Scan AWS network in your terminal." Pau Sabates | Sciencx [Online]. Available: https://www.scien.cx/2021/04/25/scan-aws-network-in-your-terminal/. [Accessed: ]
rf:citation
» Scan AWS network in your terminal | Pau Sabates | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.