HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/resource-groups/list-group-resources.rst
**To list all of the resources in a resource group**

Example 1: The following ``list-resource-groups`` example lists all of the resources that are part of the specified resource group. ::

    aws resource-groups list-group-resources \ 
        --group-name tbq-WebServer

Output::

    {
        "ResourceIdentifiers": [
            {
                "ResourceArn": "arn:aws:ec2:us-west-2:123456789012:instance/i-09f77fa38c12345ab",
                "ResourceType": "AWS::EC2::Instance"
            }
        ]
    }

Example 2: The following example lists all of the resources in the group that also have a 'resource-type' of the 'AWS::EC2::Instance'. :

    aws resource-groups list-group-resources \
        --group-name tbq-WebServer \
        --filters Name=resource-type,Values=AWS::EC2::Instance