Check available IP addresses in an AWS Subnet
- Install the AWS CLI.
- Get your AWS IAM user’s access key (downloads a csv file)
- 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) - You should be connected. Now you can run the describe-subnets command. It is part of the ec2 commands.
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.
Leave a Reply