AWS EBS

Create volume

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Create an EBS volume that can be attached to an instance in the same availability zone.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

availabilityZone [required]

string

The ID of the Availability Zone in which to create the volume. For example, us-east-1a.

encrypted

boolean

The encryption status of the volume.

size

number

volumeType

enum

The volume type. The following values are supported: General Purpose SSD: gp2 | gp3, Provisioned IOPS SSD: io1 | io2, Throughput Optimized HDD: st1, Cold HDD: sc1, and Magnetic: standard. Allowed enum values: standard,io1,io2,gp2,sc1,st1,gp3

default: `gp2`

Outputs

Expand All

Champ

Type

Description

attachmentSet

[object]

Information about the volume attachments.

AttachTime

date-time

The time stamp when the attachment initiated.

Device

string

The device name. If the volume is attached to a Fargate task, this parameter returns null.

InstanceId

string

The ID of the instance. If the volume is attached to a Fargate task, this parameter returns null.

State

string

The attachment state of the volume.

VolumeId

string

The ID of the volume.

DeleteOnTermination

boolean

Indicates whether the EBS volume is deleted on instance termination.

AssociatedResource

string

The ARN of the Amazon ECS or Fargate task to which the volume is attached.

InstanceOwningService

string

The service principal of Amazon Web Services service that owns the underlying instance to which the volume is attached. This parameter is returned only for volumes that are attached to Fargate tasks.

availabilityZone

string

The Availability Zone for the volume.

createTime

date-time

The time stamp when volume creation was initiated.

encrypted

boolean

Indicates whether the volume is encrypted.

size

number

The size of the volume, in GiBs.

state

string

The volume state.

tagSet

[object]

Any tags assigned to the volume.

Key

string

The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

Value

string

The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

volumeId

string

The ID of the volume.

volumeType

string

The volume type.

tagValue [required]

object

tagValueList [required]

object

amzRequestId [required]

string