dcloud ec2 instances set-tags

Relabel an instance in one call: set some tags, remove others

IAM tags:TagResourceChanges stateAsks before it deletes (-y skips)

Setting needs tags:TagResource and removing tags:UntagResource on the instance. Answers the tags it has afterwards. Find instances by tag with `dcloud ec2 instances list --tag key=value`.

Synopsis

dcloud ec2 instances set-tags id [flags]

Arguments

  • <id>Required

    string

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

Flags

  • --setOptional

    map of string

    Tags to add or overwrite

    Constraints: key=value

  • --removeOptional

    array of string

    Keys to remove

    Constraints: 1-128 chars

Example

dcloud ec2 instances set-tags id

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