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.
Use the following procedure.
To create a data group using the console
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/
. -
In the navigation pane, choose Data Groups.
The Data Groups overview page displays.
-
Choose Create Data Group.
The Create data group page displays.
-
Under Settings, do the following:
-
For DB cluster, choose the DB cluster to create the data group in.
-
For Data Group name, enter a name, for example
tenant42.
-
-
(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. -
Under Data encryption, choose the KMS key and, optionally, additional encryption context for the data group.
ImportantYou can't change the key after you create the data group. For more information, see Encrypting data groups in Amazon Aurora.
-
(Optional) Under Tags, add tags for the data group.
-
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.
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.
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.ImportantYou 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.
-
--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-identifierorders-cluster-1\ --data-group-nametenant42\ --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.
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-identifierdg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\ --query "DataGroups[0].Status"
The output resembles the following example.
"active"
For more information, see create-data-group.
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.
To add databases to the data group, see Creating or migrating databases in a data group.