dcloud ec2 machine-images create

Snapshot a running instance into a machine image

IAM ec2:CreateImageChanges state

Synopsis

dcloud ec2 machine-images create --instance-id instanceId --name name [flags]

Flags

  • --instance-idRequired

    string

    The instance to snapshot (i-…), running or stopped

    Constraints: min 1 chars

  • --nameRequired

    string

    A display name

    Constraints: 1-64 chars

  • --descriptionOptional

    string

    Free text; omitted: none

    Constraints: max 255 chars

  • --tagsOptional

    map of string

    Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).

    Constraints: key=value

Example

dcloud ec2 machine-images create --instance-id example --name example

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