Data group endpoints
A data group endpoint is a pair of endpoints for one data group: a writer endpoint and a reader endpoint. The writer endpoint connects you in the same way as the cluster endpoint of the DB cluster that holds the data group, and the reader endpoint in the same way as its reader endpoint. For more information, see Cluster endpoints for Amazon Aurora and Reader endpoints for Amazon Aurora.
When you move the data group to another DB cluster, both endpoints move with it. DB cluster endpoints belong to a DB cluster, so after a move they no longer reach the data group. With a data group endpoint, your applications keep the same host name after a move, and you don't need to keep a record of which DB cluster holds each data group. Use a data group endpoint when your applications connect to one data group at a time.
A data group doesn't have a data group endpoint until you enable one, and each data group can have only one. You can enable it when you create the data group or at any time later. For more information, see Enabling endpoints during creation and Enabling endpoints for existing data group.
The following example illustrates the writer endpoint and the reader endpoint for a data group endpoint named
tenant42-ep.
tenant42-ep.c7tj4example.data-group.us-east-1.rds.amazonaws.com tenant42-ep.ro-c7tj4example.data-group.us-east-1.rds.amazonaws.com
Each host name starts with the data group endpoint name, tenant42-ep, followed by the DNS identifier for your
AWS account in the AWS Region, c7tj4example. The reader endpoint adds ro- before the DNS
identifier.
For more information about the other types of Aurora endpoints, see Amazon Aurora endpoint connections.
Topics
Considerations for data group endpoints
The following considerations apply to data group endpoints:
-
A data group endpoint name must follow these rules:
Rule Requirement Length
The name must be 1–63 characters long.
Characters
The name can contain letters, numbers, and hyphens.
First character
The first character must be a letter.
Hyphens
The name can't end with a hyphen or contain two consecutive hyphens.
Uniqueness
The name must be unique in the AWS account and AWS Region where you create it.
Case
The name isn't case-sensitive. Aurora stores it as a lowercase string.
-
A DB cluster can have up to 20 data group endpoints. Each data group endpoint counts once, as a pair of a writer endpoint and a reader endpoint. A move counts the data group endpoint against the limit of the target DB cluster.
-
The data group must be in the
activestate when you enable, rename, or disable its endpoint. During the change, the status of the data group ismodifying. -
When you rename or disable a data group endpoint, applications that connect through the previous endpoint can no longer resolve it.
-
When you delete a data group, Aurora also removes its data group endpoint.
-
You can connect through a data group endpoint with TLS, including server certificate verification, and with IAM database authentication. Use the data group endpoint host name when you generate the authentication token.
-
After a move, the data group endpoint resolves to the endpoints of the target DB cluster. If you use connection pooling or cache DNS, reduce the DNS time-to-live (TTL) or flush the cache, so that new connections don't go to the source DB cluster.
-
When you restore a DB cluster, Aurora doesn't restore its data group endpoints. Enable them again on the restored data groups. Because a data group endpoint name is unique in the AWS account and AWS Region, choose a new name if the original endpoint still exists.
Enabling endpoints during creation
You can enable a data group endpoint when you create a data group by using the AWS Management Console, the AWS CLI, or the RDS API.
Create the data group by following the console procedure in Creating a data group. Under Data group endpoint, for Endpoint
name, enter a name for the data group endpoint, for example tenant42-ep.
If you leave Endpoint name empty, the data group has no data group endpoint. You can enable one later. For more information, see Enabling endpoints for existing data group.
To enable a data group endpoint when you create a data group, use the AWS CLI create-data-group command with the following
parameters:
-
--db-cluster-identifier– The name of the DB cluster that holds the data group. -
--data-group-name– The name of the data group. -
--enable-endpoint– Enables the data group endpoint. -
--data-group-endpoint-name– The name of the data group endpoint. This parameter is required when you specify--enable-endpoint.
The following example creates a data group named tenant42 with a data group endpoint named
tenant42-ep.
aws rds create-data-group \ --db-cluster-identifierorders-cluster-1\ --data-group-nametenant42\ --enable-endpoint \ --data-group-endpoint-nametenant42-ep
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", "Status": "creating", "Endpoint": "tenant42-ep.c7tj4example.data-group.us-east-1.rds.amazonaws.com", "ReaderEndpoint": "tenant42-ep.ro-c7tj4example.data-group.us-east-1.rds.amazonaws.com", "HostedZoneId": "Z2R2ITUGEXAMPLE", "CreateTime": "2026-11-24T18:02:11.512Z", "StorageEncryptionType": "sse-kms" }
To enable a data group endpoint when you create a data group, use the Amazon RDS API CreateDataGroup operation with the following
parameters:
-
DBClusterIdentifier -
DataGroupName -
EnableEndpoint– Set totrue. -
DataGroupEndpointName
Enabling endpoints for existing data group
You can enable a data group endpoint for an existing data group by using the AWS Management Console, the AWS CLI, or the RDS API.
To enable a data group endpoint
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.
-
Choose the name of the data group.
-
For Endpoint actions, choose Enable endpoint.
-
For Endpoint name, enter a name for the data group endpoint.
-
Choose Enable.
During the change, the data group status is modifying, which might take a few minutes. When
the status returns to active, the endpoint is ready. If the request fails, see Errors for data group endpoints.
To enable a data group endpoint for an existing data group, use the AWS CLI modify-data-group command with the following
parameters:
-
--data-group-identifier– The identifier or ARN of the data group. -
--enable-endpoint– Enables the data group endpoint. -
--data-group-endpoint-name– The name of the data group endpoint.
The following example enables a data group endpoint named tenant42-ep.
aws rds modify-data-group \ --data-group-identifierdg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\ --enable-endpoint \ --data-group-endpoint-nametenant42-ep
To enable a data group endpoint for an existing data group, use the Amazon RDS API ModifyDataGroup operation with the following
parameters:
-
DataGroupIdentifier -
EnableEndpoint– Set totrue. -
DataGroupEndpointName
Viewing a data group endpoint
You can view the writer endpoint and the reader endpoint of a data group by using the AWS Management Console, the AWS CLI, or the RDS API.
To view a data group endpoint
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.
-
Choose the name of the data group.
The details page shows the Writer endpoint and the Reader endpoint. If the data group has no endpoint, the page shows No endpoint.
To view a data group endpoint, use the AWS CLI describe-data-groups command. The Endpoint and ReaderEndpoint
fields in the output show the writer endpoint and the reader endpoint. They're absent when the data group has no
endpoint.
The following example shows the endpoints for a data group.
aws rds describe-data-groups \ --data-group-identifierdg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\ --query "DataGroups[0].[Endpoint,ReaderEndpoint]" \ --output text
The output resembles the following example.
tenant42-ep.c7tj4example.data-group.us-east-1.rds.amazonaws.com tenant42-ep.ro-c7tj4example.data-group.us-east-1.rds.amazonaws.com
To view a data group endpoint, use the Amazon RDS API DescribeDataGroups operation. The Endpoint and ReaderEndpoint
fields of the DataGroup object show the writer endpoint and the reader endpoint.
Renaming a data group endpoint
You can rename a data group endpoint by using the AWS Management Console, the AWS CLI, or the RDS API. Renaming changes the host names of both the writer endpoint and the reader endpoint.
After you rename a data group endpoint, applications that connect through the previous endpoint can no longer resolve it. Update your applications to use the new endpoint.
To rename a data group endpoint
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.
-
Choose the name of the data group.
-
For Endpoint actions, choose Modify endpoint name.
-
For Endpoint name, enter the new name.
-
Choose Save changes.
During the change, the data group status is modifying, which might take a few minutes. When
the status returns to active, the endpoint is ready. If the request fails, see Errors for data group endpoints.
To rename a data group endpoint, use the AWS CLI modify-data-group command with the following parameters:
-
--data-group-identifier– The identifier or ARN of the data group. -
--data-group-endpoint-name– The new name of the data group endpoint.
The following example renames the data group endpoint to tenant42-orders.
aws rds modify-data-group \ --data-group-identifierdg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\ --data-group-endpoint-nametenant42-orders
To rename a data group endpoint, use the Amazon RDS API ModifyDataGroup operation with the following parameters:
-
DataGroupIdentifier -
DataGroupEndpointName– The new name.
Disabling a data group endpoint
You can disable a data group endpoint by using the AWS Management Console, the AWS CLI, or the RDS API. Disabling the endpoint removes the writer endpoint and the reader endpoint for the data group.
After you disable a data group endpoint, applications that connect through it can no longer resolve it.
To disable a data group endpoint
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.
-
Choose the name of the data group.
-
For Endpoint actions, choose Disable endpoint.
-
Enter
confirmin the box, then choose Disable.
During the change, the data group status is modifying, which might take a few minutes. When
the status returns to active, the endpoint is removed. If the request fails, see Errors for data group endpoints.
To disable a data group endpoint, use the AWS CLI modify-data-group command with the following parameters:
-
--data-group-identifier– The identifier or ARN of the data group. -
--no-enable-endpoint– Disables the data group endpoint. Don't specify--data-group-endpoint-namewith this option.
The following example disables the data group endpoint.
aws rds modify-data-group \ --data-group-identifierdg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\ --no-enable-endpoint
To disable a data group endpoint, use the Amazon RDS API ModifyDataGroup operation with the following parameters:
-
DataGroupIdentifier -
EnableEndpoint– Set tofalse.
Errors for data group endpoints
The following table lists the errors that are specific to data group endpoints.
| Error | Cause |
|---|---|
|
A data group endpoint with this name already exists in this AWS account and AWS Region. Specify a different name. |
|
You enabled the endpoint without specifying a data group endpoint name. |
|
The DB cluster has reached the maximum of 20 data group endpoints. For a move, this applies to the target DB cluster. |
|
You specified a data group endpoint name without enabling the endpoint when you created the data group, or
with |
|
You tried to rename a data group endpoint for a data group that has no endpoint. Enable an endpoint first. |