CmdID

CmdID / aws / aws ecr

aws ecr tag-resource

Adds specified tags to a resource with the specified ARN. 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 tag a repository

The following tag-resource example sets a tag with key Stage and value Integ on the hello-world repository.

aws ecr tag-resource --resource-arn arn:aws:ecr:us-west-2:123456789012:repository/hello-world --tags Key=Stage,Value=IntegIdentify
--resource-arnThe Amazon Resource Name (ARN) of the the resource to which to add tags.
--tagsThe tags to add to the resource.

This command produces no output.

For more information, see Tagging a private repository in Amazon ECR in the Amazon ECR User Guide.

Options

2 in the AWS CLI reference
--resource-arnThe Amazon Resource Name (ARN) of the the resource to which to add tags.
--tagsThe tags to add to the resource.