

# Creating a data group

You can use the AWS Management Console or AWS CLI to create a data group. A new data group is empty. After it's `active`, you add databases to it with SQL.

Before you start, make sure that the DB cluster meets the requirements in [Aurora data groups requirements and considerations](aurora-data-groups-reqs-limits.md).

## Console
<a name="dg-create.CON"></a>

Use the following procedure.

**To create a data group using the console**

1. Sign in to the AWS Management Console and open the Amazon RDS console at [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/).

1. In the navigation pane, choose **Data Groups**.

   The **Data Groups overview** page displays.

1. Choose **Create Data Group**.

   The **Create data group** page displays.

1. Under **Settings**, do the following:

   1. For **DB cluster**, choose the DB cluster to create the data group in.

   1. For **Data Group name**, enter a name, for example **tenant42**.

1. (Optional) Under **Data group endpoint**, for **Endpoint name**, enter a name for the data group endpoint, for example **tenant42-ep**. You can also enable it after you create the data group. For more information, see [Data group endpoints](aurora-data-groups-endpoints.md).

1. Under **Data encryption**, choose the KMS key and, optionally, additional encryption context for the data group.
**Important**  
You can't change the key after you create the data group. For more information, see [Encrypting data groups in Amazon Aurora](aurora-data-groups-encrypting.md).

1. (Optional) Under **Tags**, add tags for the data group.

1. Choose **Create data group**.

The data group is listed under **All data groups** on the **Data Groups overview** page. Its status is **Creating**, then **Active**.

## CLI
<a name="dg-create.CLI"></a>

Use the `create-data-group` AWS CLI command. The following parameters are required:
+ `--db-cluster-identifier` – The name of the DB cluster where you create the data group.
+ `--data-group-name` – The name of the data group. For the naming rules, see [Considerations for Aurora data groups](aurora-data-groups-reqs-limits.md#dg-considerations).

The following parameters are optional:
+ `--kms-key-id` – The KMS key for the data group. If you leave it out, the data group uses the DB cluster key.
**Important**  
You can't change the key after you create the data group. For more information about data group keys, see [Encrypting data groups in Amazon Aurora](aurora-data-groups-encrypting.md).
+ `--additional-encryption-context` – Key-value pairs to add to the encryption context.
+ `--tags` – Tags for the data group.

The following example creates a data group named `tenant42`.

```
aws rds create-data-group \
    --db-cluster-identifier {{orders-cluster-1}} \
    --data-group-name {{tenant42}} \
    --tags Key=tenant,Value=42
```

The output resembles the following example.

```
{
    "DBClusterIdentifier": "orders-cluster-1",
    "DataGroupName": "tenant42",
    "DataGroupIdentifier": "dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "DataGroupArn": "arn:aws:rds:us-east-1:111122223333:data-group:dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "KMSKeyId": "arn:aws:kms:us-east-1:111122223333:key/1a2b3c4d-5e6f-7a8b-9c0d-EXAMPLE11111",
    "StorageEncryptionType": "sse-kms",
    "Status": "creating",
    "Tags": [
        {
            "Key": "tenant",
            "Value": "42"
        }
    ],
    "CreateTime": "2026-11-24T18:02:11.512Z"
}
```

Save the `DataGroupIdentifier`. You use it in every later command.

This example output is for a DB cluster that uses a customer managed key or an AWS managed key. If the data group uses an AWS owned key, `StorageEncryptionType` is `sse-rds` and the output has no `KMSKeyId` field. For more information, see [How data groups use KMS keys](aurora-data-groups-encrypting.md#dg-encrypt-keys).

To wait until the data group is `active`, check its status. Repeat the command until it returns `active`.

```
aws rds describe-data-groups \
    --data-group-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} \
    --query "DataGroups[0].Status"
```

The output resembles the following example.

```
"active"
```

For more information, see [create-data-group](https://docs.aws.amazon.com/cli/latest/reference/rds/create-data-group.html).

The status is `creating` while Aurora builds the data group, and then `active`. If it becomes `create-failed`, the data group stays in that state. Delete it and create it again. Aurora sends an event when the data group is created or fails to create. For more information, see [Monitoring data groups](aurora-data-groups-monitoring.md).

To add databases to the data group, see [Creating or migrating databases in a data group](aurora-data-groups-using.md).