CmdID

CmdID / aws / aws imagebuilder

aws imagebuilder untag-resource

Removes a tag from a resource. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To remove a tag from a resource

The following untag-resource example removes a tag from a resource using a JSON file.

aws imagebuilder untag-resource --cli-input-json file://untag-resource.jsonIdentify

Contents of untag-resource.json:

{
    "resourceArn": "arn:aws:imagebuilder:us-west-2:123456789012:image-pipeline/mywindows2016pipeline",
    "tagKeys": [
        "KeyName"
    ]
}

This command produces no output.

For more information, see Manage custom image creation in Image Builder through a repeatable pipeline process in the EC2 Image Builder Users Guide.

Options

2 in the AWS CLI reference
--resource-arnThe Amazon Resource Name (ARN) of the resource that you want to untag.
--tag-keysThe tag keys to remove from the resource.