View tags for a report group - Amazon CodeBuild
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 report group

Tags can help you identify and organize your Amazon resources and manage access to them. For more information about using tags, see the Tagging best practices whitepaper. For examples of tag-based access policies, see Deny or allow actions on report groups based on resource tags.

View tags for a report group (console)

You can use the CodeBuild console to view the tags associated with a CodeBuild report group.

  1. Open the CodeBuild console at

  2. In Report groups, choose the name of the report group where you want to view tags.

  3. In the navigation pane, choose Settings.

View tags for a report group (Amazon CLI)

Follow these steps to use the Amazon CLI to view the Amazon tags for a report group. If no tags have been added, the returned tags list is empty.

  1. Use the console or the Amazon CLI to locate the ARN of your report group. Make a note of it.

    Amazon CLI

    Run the following command.

    aws list-report-groups

    This command returns JSON-formatted information similar to the following:

    { "reportGroups": [ "arn:aws:codebuild:region:123456789012:report-group/report-group-1", "arn:aws:codebuild:region:123456789012:report-group/report-group-2", "arn:aws:codebuild:region:123456789012:report-group/report-group-3" ] }

    A report group ARN ends with its name, which you can use to identify the ARN for your report group.

    1. Open the CodeBuild console at

    2. In Report groups, choose the name of your report group with the tags you want to view.

    3. In Configuration locate your report group's ARN.

  2. Run the following command. Use the ARN you made a note of for the --report-group-arns parameter.

    aws codebuild batch-get-report-groups --report-group-arns arn:aws:codebuild:region:123456789012:report-group/report-group-name

    If successful, this command returns JSON-formatted information that contains a tags section similar to the following:

    { ... "tags": { "Status": "Secret", "Project": "TestBuild" } ... }