Skip to main content

Create volume

Create an EBS volume in an availability zone, empty or restored from a snapshot.

Command in the AWS EC2 toolkit · id ooa.aws_ec2/create_volume · 6 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoec2Name of the session opened by Connect.
Availability zoneStringYesAvailability zone for the volume; it can only be attached to instances in the same zone.
Size gibNumberNo0Size in GiB (1-65536). 0 takes the snapshot's size when a snapshot is given.
Volume typeStringNogp3Volume type: gp3 or gp2 general purpose SSD, io1 or io2 provisioned-IOPS SSD, st1 or sc1 hard disk, standard magnetic.
Snapshot IDStringNoSnapshot to restore the volume from. Leave empty for an empty volume.
TagsDictionaryNoTags for the volume, e.g. {"Name": "Invoice data"}.

Outputs​

OutputTypeWhat it is
volume_idStringId of the new volume, e.g. vol-0abc1234def567890.
stateStringVolume state: creating, then available.
size_gibNumberSize of the volume in GiB.