aws ec2 describe-subnetsIT technician command center
AWS CLI · Amazon Web Services

aws ec2 describe-subnets

List VPC subnets.

Copy-ready commandaws ec2 describe-subnets
aws ec2 describe-subnets --output table

Requirements and permissions

Requirements
AWS CLI v2
Permissions
AWS IAM permissions vary
Last reviewed
2026-07-31

Examples

Basic example

List VPC subnets.

aws ec2 describe-subnets --output table

Common errors

Command not found

Confirm AWS CLI v2 is installed and available in your current shell.