Skip to main content
Providers

EbsVolume

A resource of the AWS provider, version 0.3.0, in its Storage group. Import it with:

import EbsVolume from "aws/storage"

Example

resource EbsVolume example {
    availabilityZone   = "example-value"
    size               = 3.14
    volumeType         = "gp3"
    iops               = 3.14
    throughput         = 3.14
    encrypted          = false
    kmsKeyId           = "example-value"
    snapshotId         = "example-value"
    multiAttachEnabled = false
    tags               = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
availabilityZonestring—NoThe Availability Zone in which to create the volume
sizenumber—NoThe size of the volume in GiBs
volumeTypestring"gp3"NoThe volume type Allowed: "gp2", "gp3", "io1", "io2", "st1", "sc1", "standard"
iopsnumber—NoThe number of I/O operations per second (IOPS)
throughputnumber—NoThe throughput in MiB/s. Only valid for gp3 volumes
encryptedbooleanfalseNoWhether the volume should be encrypted
kmsKeyIdstring—NoThe ARN of the KMS key to use for encryption
snapshotIdstring—NoThe snapshot ID to create the volume from
multiAttachEnabledbooleanfalseNoEnable Multi-Attach for io1/io2 volumes
tagsobject—NoTags to apply to the volume

Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
volumeIdstringNoThe volume ID assigned by AWS
arnstringYesThe Amazon Resource Name (ARN) of the volume
statestringNoThe current state of the volume
createTimestringNoThe time the volume was created
attachmentsstringNoInformation about the volume attachments

On this page