Menu
Amazon ElastiCache for Redis
ElastiCache for Redis User Guide (API Version 2015-02-02)

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 AWS account.

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

Listing Available Security Groups (Console)

  1. Sign in to the AWS Management Console and open the ElastiCache console at https://console.aws.amazon.com/elasticache/.

  2. In the navigation pane, choose Security Groups.

    The available security groups appear in the Security Groups list.

Listing Available Security Groups (AWS CLI)

At a command prompt, use the describe-cache-security-groups command to list all available security groups for your AWS 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.

Example

Line breaks are added for ease of reading.

https://elasticache.us-west-2.amazonaws.com/ ?Action=DescribeCacheSecurityGroups &MaxRecords=100 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T220302Z &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Date=20150202T220302Z &X-Amz-SignedHeaders=Host &X-Amz-Expires=20150202T220302Z &X-Amz-Credential=<credential> &X-Amz-Signature=<signature>