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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | ec2 | Name of the session opened by Connect. |
| Availability zone | String | Yes | Availability zone for the volume; it can only be attached to instances in the same zone. | |
| Size gib | Number | No | 0 | Size in GiB (1-65536). 0 takes the snapshot's size when a snapshot is given. |
| Volume type | String | No | gp3 | Volume type: gp3 or gp2 general purpose SSD, io1 or io2 provisioned-IOPS SSD, st1 or sc1 hard disk, standard magnetic. |
| Snapshot ID | String | No | Snapshot to restore the volume from. Leave empty for an empty volume. | |
| Tags | Dictionary | No | Tags for the volume, e.g. {"Name": "Invoice data"}. |
Outputs
| Output | Type | What it is |
|---|---|---|
| volume_id | String | Id of the new volume, e.g. vol-0abc1234def567890. |
| state | String | Volume state: creating, then available. |
| size_gib | Number | Size of the volume in GiB. |