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

Creating a Security Group

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 Virtual Private Cloud (Amazon VPC) with ElastiCache.

To create a security group, you need to provide a name and a description.

The following procedures show you how to create a new security group.

Creating a Security Group (Console)

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

  2. In the left navigation pane, choose Security Groups.

  3. Choose Create Security Group.

  4. In Create Security Group, type the name of the new security group in Security Group.

  5. In Description, type a description for the new security group.

  6. Choose Create.

Creating a Security Group (AWS CLI)

At a command prompt, use the create-cache-security-group command with the following parameters:

  • --cache-security-group-name – The name of the security group you are creating.

    Example: mysecuritygroup

  • --description – A description for this security group.

    Example: "My new security group"

For Linux, macOS, or Unix:

Copy
aws elasticache create-cache-security-group \ --cache-security-group-name mysecuritygroup \ --description "My new security group"

For Windows:

Copy
aws elasticache create-cache-security-group ^ --cache-security-group-name mysecuritygroup ^ --description "My new security group"

For more information, see create-cache-security-group.

Creating a Security Group (ElastiCache API)

Using the ElastiCache API operation CreateCacheSecurityGroup with the following parameters:

  • CacheSecurityGroupName – The name of the security group you are creating.

    Example: mysecuritygroup

  • Description – A URL encoded description for this security group.

    Example: My%20security%20group

Example

Line breaks in the following code example are added for ease of reading.

Copy
https://elasticache.us-west-2.amazonaws.com / ?Action=CreateCacheSecurityGroup &CacheSecurityGroupName=mysecuritygroup &Description=My%20security%20group &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>