AWS CLI EC2 Cheat Sheet/Create an EBS volume

Create a new volume in a specific AZ.

Section: EBS Volumes and Snapshots

Create an EBS volume

bash
bash
aws ec2 create-volume --availability-zone us-west-2a --size 50 --volume-type gp3
Explanation

Block storage volumes are AZ-scoped.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing EBS Volumes and Snapshots
Describe EBS volumes
List attached and unattached EBS volumes.
OpenIn sheetbashsame section
Attach a volume
Attach an existing EBS volume to an instance.
OpenIn sheetbashsame section
Create a snapshot
Snapshot an EBS volume.
OpenIn sheetbashsame section
Describe snapshots
List snapshots visible to the account.
OpenIn sheetbashsame section
Delete a snapshot
Remove a no-longer-needed snapshot.
OpenIn sheetbashsame section
Describe instances
List EC2 instances and their attributes.
OpenIn sheetbash2 tag match