dcloud ec2 volumes attach

Attach a volume to an instance in the same region

IAM ec2:AttachVolumeChanges state

Synopsis

dcloud ec2 volumes attach id --instance-id instanceId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: /^vol-[0-9a-f]{6,32}$/

Flags

  • --instance-idRequired

    string

    The instance to attach to (i-…), in the volume’s zone and not terminated

    Constraints: /^i-[0-9a-f]{6,32}$/

Example

dcloud ec2 volumes attach id --instance-id example

Generated from the API description, the same one the API checks requests against and the CLI is built from.