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
A Technical I.T./DevOps Blog
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