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
Examples
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.jsonIdentifyContents 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
--resource-arnThe Amazon Resource Name (ARN) of the resource that you want to untag.--tag-keysThe tag keys to remove from the resource.