dcloud ec2 elastic-ips associate

Attach an elastic IP to an instance

IAM ec2:AssociateAddressChanges state

Synopsis

dcloud ec2 elastic-ips associate id --instance-id instanceId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --instance-idRequired

    string

    The instance to attach the address to (i-…)

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

Example

dcloud ec2 elastic-ips associate id --instance-id example

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