dcloud ec2 instances set-tagsRelabel 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>Requiredstring
Also accepted as
--id. Constraints: /^i-[0-9a-f]{6,32}$/
Flags
--setOptionalmap of string
Tags to add or overwrite
Constraints: key=value
--removeOptionalarray of string
Keys to remove
Constraints: 1-128 chars
Example
dcloud ec2 instances set-tags idGenerated from the API description, the same one the API checks requests against and the CLI is built from.