How Do You Find the Subnet ID Values in AWS?

Problem scenario
You want to list the subnet ID values in AWS. What do you do?


Install and configure the AWS CLI; if you need assistance, see this posting if you can you the pip command and you are using Ubuntu. If you cannot use the pip command or you are not using Ubuntu, see this posting.

Run this command:
aws ec2 describe-subnets | grep -i subnet

Leave a comment

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