AWS EBS

Attach 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.

Attach an EBS volume to a running or stopped instance, and expose it to the instance with the specified device name.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

volumeId [required]

string

The ID of the EBS volume. The volume and instance must be within the same Availability Zone.

instanceId [required]

string

The ID of the instance.

device [required]

string

The device name (for example, /dev/sdh or xvdh).

Outputs

Champ

Type

Description

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.

volumeId

string

The ID of the volume.

atttachTime

date-time

The time stamp when the attachment initiated.

state

string

The attachment state of the volume.

deleteOnTermination

boolean

Indicates whether the EBS volume is deleted on instance termination.

amzRequestId [required]

string