CmdID

CmdID / aws / aws resource-groups

aws resource-groups get-tags

Returns a list of tags that are associated with a resource group, specified by an Amazon resource name (ARN). AWS CLI reference

1 example 1 option 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 retrieve the tags attached to a resource group

The following get-tags example displays the tag key and value pairs attached to the specified resource group (the group itself, not its members).

aws resource-groups get-tags --arn arn:aws:resource-groups:us-west-2:123456789012:group/tbq-WebServerIdentify
--arnThe Amazon resource name (ARN) of the resource group whose tags you want to retrieve.
Its output
{
    "Arn": "arn:aws:resource-groups:us-west-2:123456789012:group/tbq-WebServer",
    "Tags": {
        "QueryType": "tags",
        "QueryResources": "ec2-instances"
    }
}

For more information, see What are resource groups? in the AWS Resource Groups User Guide.

Options

1 in the AWS CLI reference
--arnThe Amazon resource name (ARN) of the resource group whose tags you want to retrieve.