CmdID / aws / aws memorydb
aws memorydb update-subnet-group
Updates a subnet group. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update a subnet group
The following update-subnet-group example updates a subnet group's subnet ID.
aws memorydb update-subnet-group --subnet-group-name my-sg --subnet-ids subnet-01f29d458f3xxxxxIdentify--subnet-group-nameThe name of the subnet group--subnet-idsThe EC2 subnet IDs for the subnet group.Its output
{
"SubnetGroup": {
"Name": "my-sg-1",
"Description": "my-sg",
"VpcId": "vpc-09d2cfc01xxxxxxx",
"Subnets": [
{
"Identifier": "subnet-01f29d458fxxxxxx",
"AvailabilityZone": {
"Name": "us-west-2a"
}
}
],
"ARN": "arn:aws:memorydb:us-west-2:491658xxxxxx:subnetgroup/my-sg"
}
}For more information, see Subnets and subnet groups in the MemoryDB User Guide.
Options
--descriptionA description of the subnet group--subnet-group-nameThe name of the subnet group--subnet-idsThe EC2 subnet IDs for the subnet group.