CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

4 in the AWS CLI reference
--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.