CmdID / aws / aws elasticache
aws elasticache modify-cache-subnet-group
Modifies an existing cache subnet group. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To modify a cache subnet group
The following modify-cache-subnet-group example modifies the specified cache subnet group.
aws elasticache modify-cache-subnet-group --cache-subnet-group-name kxkxk --cache-subnet-group-description "mygroup"Identify--cache-subnet-group-nameThe name for the cache subnet group.--cache-subnet-group-descriptionA description of the cache subnet group.Its output
{
"CacheSubnetGroup": {
"CacheSubnetGroupName": "kxkxk",
"CacheSubnetGroupDescription": "mygroup",
"VpcId": "vpc-xxxxcdb",
"Subnets": [
{
"SubnetIdentifier": "subnet-xxxxbff",
"SubnetAvailabilityZone": {
"Name": "us-west-2a"
}
}
]
}
}For more information, see Modifying a Subnet Group in the Elasticache User Guide.
Options
--cache-subnet-group-descriptionA description of the cache subnet group.--cache-subnet-group-nameThe name for the cache subnet group.--subnet-idsThe EC2 subnet IDs for the cache subnet group.