HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/dax/create-subnet-group.rst
**To create a DAX subnet group**

The following ``create-subnet-group`` example creates a subnet group with the specified settings. ::

    aws dax create-subnet-group \
        --subnet-group-name daxSubnetGroup \
        --subnet-ids subnet-11111111 subnet-22222222

Output::

    {
        "SubnetGroup": {
            "SubnetGroupName": "daxSubnetGroup",
            "VpcId": "vpc-05a1fa8e00c325226",
            "Subnets": [
                {
                    "SubnetIdentifier": "subnet-11111111",
                    "SubnetAvailabilityZone": "us-west-2b"
                },
                {
                    "SubnetIdentifier": "subnet-22222222",
                    "SubnetAvailabilityZone": "us-west-2c"
                }
            ]
        }
    }

For more information, see `Step 2: Create a Subnet Group <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.create-cluster.cli.create-subnet-group.html>`__ in the *Amazon DynamoDB Developer Guide*.