dcloud ec2 machine-images createSnapshot 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-idRequiredstring
The instance to snapshot (i-…), running or stopped
Constraints: min 1 chars
--nameRequiredstring
A display name
Constraints: 1-64 chars
--descriptionOptionalstring
Free text; omitted: none
Constraints: max 255 chars
--tagsOptionalmap 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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.