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
Examples
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
--resource-arnThe Amazon Resource Name (ARN) of the the resource to which to add tags.--tagsThe tags to add to the resource.