AWS CodeCommit
User Guide (API Version 2015-04-13)

View Tags for a Repository

Tags can help you identify and organize your AWS resources and manage access to them. For tips on using tags, see the AWS Tagging Strategies post on the AWS Answers blog. For examples of tag-based access policies, see Example 5: Deny or Allow Actions on Repositories with Tags.

View Tags for a Repository (Console)

You can use the CodeCommit console to view the tags associated with a CodeCommit repository.

  1. Open the CodeCommit console at https://console.aws.amazon.com/codesuite/codecommit/home.

  2. In Repositories, choose the name of the repository where you want to view tags.

  3. In the navigation pane, choose Settings. Choose Repository tags.

    
                            Viewing tags for a repository

View Tags for a Repository (AWS CLI)

Follow these steps to use the AWS CLI to view the AWS tags for a CodeCommit repository. If no tags have been added, the returned list is empty.

At the terminal or command line, run the list-tags-for-resource command. For example, to view a list of tag keys and tag values for a repository named MyDemoRepo with the ARN arn:aws:codecommit:us-east-2:111111111111:MyDemoRepo:

aws codecommit list-tags-for-resource --resource-arn arn:aws:codecommit:us-west-2:111111111111:MyDemoRepo

If successful, this command returns information similar to the following:

{ "tags": { "Status": "Secret", "Team": "Saanvi" } }