Listing available security groups - Amazon ElastiCache
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.

Listing available security groups

This topic is relevant to you only if you are not running in an Amazon VPC. If you are running in an Amazon VPC, see Amazon VPCs and ElastiCache security.

You can list which security groups have been created for your Amazon account.

The following procedures show you how to list the available security groups for your Amazon account.

Listing available security groups (Console)

  1. Sign in to the Amazon Web Services Management Console and open the Amazon EC2 console at

  2. In the navigation pane, choose Security Groups.

    The available security groups appear in the Security Groups list.

Listing available security groups (Amazon CLI)

At a command prompt, use the describe-cache-security-groups command to list all available security groups for your Amazon account.

aws elasticache describe-cache-security-groups

JSON output from this command will look something like this.

{ "Marker": "Marker", "CacheSecurityGroups": [ { "OwnerId": "OwnerId", "CacheSecurityGroupName": "CacheSecurityGroupName", "Description": "Description", "EC2SecurityGroups": [ { "Status": "Status", "EC2SecurityGroupName": "EC2SecurityGroupName", "EC2SecurityGroupOwnerId": "EC2SecurityGroupOwnerId" } ] } ] }

For more information, see describe-cache-security-groups.

Listing available security groups (ElastiCache API)

Using the ElastiCache API, call DescribeCacheSecurityGroups.


Line breaks are added for ease of reading. ?Action=DescribeCacheSecurityGroups &MaxRecords=100 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T220302Z &X-Amz-Algorithm=&AWS;4-HMAC-SHA256 &X-Amz-Date=20150202T220302Z &X-Amz-SignedHeaders=Host &X-Amz-Expires=20150202T220302Z &X-Amz-Credential=<credential> &X-Amz-Signature=<signature>