dcloud ec2 volumes attachAttach a volume to an instance in the same region
IAM ec2:AttachVolumeChanges state
Synopsis
dcloud ec2 volumes attach id --instance-id instanceIdArguments
<id>Requiredstring
Also accepted as
--id. Constraints: /^vol-[0-9a-f]{6,32}$/
Flags
--instance-idRequiredstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.