Modifying a subnet group - 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 (PDF).

Modifying a subnet group

You can modify a subnet group's description, or modify the list of subnet IDs associated with the subnet group. You cannot delete a subnet ID from a subnet group if a cache is currently using that subnet.

The following procedures show you how to modify a subnet group.

Modifying subnet groups (Console)

To modify a subnet group
  1. Sign in to the Amazon Web Services Management Console and open the ElastiCache console at

  2. In the navigation pane, choose Subnet groups.

  3. In the list of subnet groups, select the radio button of the one you want to modify and choose Modify.

  4. In the Selected subnets panel, choose Manage.

  5. Make any changes to the selected subnets and click Choose.

  6. Click Save changes to save your changes.

Modifying subnet groups (Amazon CLI)

At a command prompt, use the command modify-cache-subnet-group to modify a subnet group.

For Linux, OS X, or Unix:

aws elasticache modify-cache-subnet-group \ --cache-subnet-group-name mysubnetgroup \ --cache-subnet-group-description "New description" \ --subnet-ids "subnet-42df9c3a" "subnet-48fc21a9"

For Windows:

aws elasticache modify-cache-subnet-group ^ --cache-subnet-group-name mysubnetgroup ^ --cache-subnet-group-description "New description" ^ --subnet-ids "subnet-42df9c3a" "subnet-48fc21a9"

This command should produce output similar to the following:

{ "CacheSubnetGroup": { "VpcId": "vpc-73cd3c17", "CacheSubnetGroupDescription": "New description", "Subnets": [ { "SubnetIdentifier": "subnet-42dcf93a", "SubnetAvailabilityZone": { "Name": "us-west-2a" } }, { "SubnetIdentifier": "subnet-48fc12a9", "SubnetAvailabilityZone": { "Name": "us-west-2a" } } ], "CacheSubnetGroupName": "mysubnetgroup" } }

For more information, see the Amazon CLI topic modify-cache-subnet-group.