How Do You List Vpc IDs with the AWS CLI?

Problem scenario
You need a list of VPC IDs for a command. How do you obtain this?

Solution
This assumes that you have the AWS CLI installed and configured. Run this command:

aws ec2 describe-subnets | grep VpcId

Leave a comment

Your email address will not be published. Required fields are marked *