View tags for a repository - Amazon CodeCommit
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

View tags for a repository

Tags can help you identify and organize your Amazon resources and manage access to them. For more information about tagging strategies, see Tagging Amazon Resources. 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.www.amazonaws.cn/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.

View tags for a repository (Amazon CLI)

Follow these steps to use the Amazon CLI to view the Amazon 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" } }