CmdID / aws / aws memorydb
aws memorydb create-subnet-group
Creates a subnet group. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To create a subnet group
The following create-subnet-group example creates a subnet group.
aws memorydb create-subnet-group --subnet-group-name mysubnetgroup --description "my subnet group" --subnet-ids subnet-5623xxxxIdentify--subnet-group-nameThe name of the subnet group.--descriptionA description for the subnet group.--subnet-idsA list of VPC subnet IDs for the subnet group.Its output
{
"SubnetGroup": {
"Name": "mysubnetgroup",
"Description": "my subnet group",
"VpcId": "vpc-86257xxx",
"Subnets": [
{
"Identifier": "subnet-5623xxxx",
"AvailabilityZone": {
"Name": "us-west-2a"
}
}
],
"ARN": "arn:aws:memorydb:us-west-2:491658xxxxxx:subnetgroup/mysubnetgroup"
}
}For more information, see Creating a subnet group in the MemoryDB User Guide.
Options
--descriptionA description for the subnet group.--subnet-group-nameThe name of the subnet group.--subnet-idsA list of VPC subnet IDs for the subnet group.--tagsA list of tags to be added to this resource.