Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
awscli / awscli / examples / resource-groups / list-group-resources.rst
Size: Mime:
**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