1. Install the AWS CLI.
  2. Get your AWS IAM user’s access key (downloads a csv file)
  3. Connect to your aws account – (from cmd prompt, type aws configure). Enter your access key ID and actual key. Pick a region in which your VPC is (e.g. us-east-1) and pick an output format (JSON)
  4. You should be connected. Now you can run the describe-subnets command. It is part of the ec2 commands.
  5. aws ec2 describe-subnets  (should output all the subnets)

That’s it. The output will contain the count of available IPs in each CIDR block.

 

 

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.