

# 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](Aurora.Endpoints.Cluster.md) and [Reader endpoints for Amazon Aurora](Aurora.Endpoints.Reader.md).

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](#dg-endpoints-create) and [Enabling endpoints for existing data group](#dg-endpoints-enable).

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](Aurora.Overview.Endpoints.md).

**Topics**
+ [Considerations for data group endpoints](#dg-endpoints-considerations)
+ [Enabling endpoints during creation](#dg-endpoints-create)
+ [Enabling endpoints for existing data group](#dg-endpoints-enable)
+ [Viewing a data group endpoint](#dg-endpoints-view)
+ [Renaming a data group endpoint](#dg-endpoints-rename)
+ [Disabling a data group endpoint](#dg-endpoints-disable)
+ [Errors for data group endpoints](#dg-endpoints-errors)

## Considerations for data group endpoints
<a name="dg-endpoints-considerations"></a>

The following considerations apply to data group endpoints:
+ A data group endpoint name must follow these rules:


<table>
<thead>
  <tr><th>Rule</th><th>Requirement</th></tr>
</thead>
<tbody>
  <tr><td>Length</td><td>The name must be 1–63 characters long.</td></tr>
  <tr><td>Characters</td><td>The name can contain letters, numbers, and hyphens.</td></tr>
  <tr><td>First character</td><td>The first character must be a letter.</td></tr>
  <tr><td>Hyphens</td><td>The name can't end with a hyphen or contain two consecutive hyphens.</td></tr>
  <tr><td>Uniqueness</td><td>The name must be unique in the AWS account and AWS Region where you create it.</td></tr>
  <tr><td>Case</td><td>The name isn't case-sensitive. Aurora stores it as a lowercase string.</td></tr>
</tbody>
</table>

+ 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 `active` state when you enable, rename, or disable its endpoint. During the change, the status of the data group is `modifying`.
+ 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
<a name="dg-endpoints-create"></a>

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.

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

Create the data group by following the console procedure in [Creating a data group](aurora-data-groups-creating.md). 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](#dg-endpoints-enable).

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

To enable a data group endpoint when you create a data group, use the AWS CLI [`create-data-group`](https://docs.aws.amazon.com/cli/latest/reference/rds/create-data-group.html) 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-identifier {{orders-cluster-1}} \
    --data-group-name {{tenant42}} \
    --enable-endpoint \
    --data-group-endpoint-name {{tenant42-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"
}
```

### RDS API
<a name="dg-endpoints-create.API"></a>

To enable a data group endpoint when you create a data group, use the Amazon RDS API [`CreateDataGroup`](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDataGroup.html) operation with the following parameters:
+ `DBClusterIdentifier`
+ `DataGroupName`
+ `EnableEndpoint` – Set to `true`.
+ `DataGroupEndpointName`

## Enabling endpoints for existing data group
<a name="dg-endpoints-enable"></a>

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.

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

**To enable a data group endpoint**

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**.

1. Choose the name of the data group.

1. For **Endpoint actions**, choose **Enable endpoint**.

1. For **Endpoint name**, enter a name for the data group endpoint.

1. 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](#dg-endpoints-errors).

### AWS CLI
<a name="dg-endpoints-enable.CLI"></a>

To enable a data group endpoint for an existing data group, use the AWS CLI [`modify-data-group`](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-data-group.html) 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-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} \
    --enable-endpoint \
    --data-group-endpoint-name {{tenant42-ep}}
```

### RDS API
<a name="dg-endpoints-enable.API"></a>

To enable a data group endpoint for an existing data group, use the Amazon RDS API [`ModifyDataGroup`](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDataGroup.html) operation with the following parameters:
+ `DataGroupIdentifier`
+ `EnableEndpoint` – Set to `true`.
+ `DataGroupEndpointName`

## Viewing a data group endpoint
<a name="dg-endpoints-view"></a>

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.

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

**To view a data group endpoint**

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**.

1. 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**.

### AWS CLI
<a name="dg-endpoints-view.CLI"></a>

To view a data group endpoint, use the AWS CLI [`describe-data-groups`](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-data-groups.html) 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-identifier {{dg-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
```

### RDS API
<a name="dg-endpoints-view.API"></a>

To view a data group endpoint, use the Amazon RDS API [`DescribeDataGroups`](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDataGroups.html) operation. The `Endpoint` and `ReaderEndpoint` fields of the `DataGroup` object show the writer endpoint and the reader endpoint.

## Renaming a data group endpoint
<a name="dg-endpoints-rename"></a>

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.

**Important**  
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.

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

**To rename a data group endpoint**

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**.

1. Choose the name of the data group.

1. For **Endpoint actions**, choose **Modify endpoint name**.

1. For **Endpoint name**, enter the new name.

1. 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](#dg-endpoints-errors).

### AWS CLI
<a name="dg-endpoints-rename.CLI"></a>

To rename a data group endpoint, use the AWS CLI [`modify-data-group`](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-data-group.html) 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-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} \
    --data-group-endpoint-name {{tenant42-orders}}
```

### RDS API
<a name="dg-endpoints-rename.API"></a>

To rename a data group endpoint, use the Amazon RDS API [`ModifyDataGroup`](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDataGroup.html) operation with the following parameters:
+ `DataGroupIdentifier`
+ `DataGroupEndpointName` – The new name.

## Disabling a data group endpoint
<a name="dg-endpoints-disable"></a>

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.

**Important**  
After you disable a data group endpoint, applications that connect through it can no longer resolve it.

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

**To disable a data group endpoint**

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**.

1. Choose the name of the data group.

1. For **Endpoint actions**, choose **Disable endpoint**.

1. Enter **confirm** in 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](#dg-endpoints-errors).

### AWS CLI
<a name="dg-endpoints-disable.CLI"></a>

To disable a data group endpoint, use the AWS CLI [`modify-data-group`](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-data-group.html) 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-name` with this option.

The following example disables the data group endpoint.

```
aws rds modify-data-group \
    --data-group-identifier {{dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} \
    --no-enable-endpoint
```

### RDS API
<a name="dg-endpoints-disable.API"></a>

To disable a data group endpoint, use the Amazon RDS API [`ModifyDataGroup`](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDataGroup.html) operation with the following parameters:
+ `DataGroupIdentifier`
+ `EnableEndpoint` – Set to `false`.

## Errors for data group endpoints
<a name="dg-endpoints-errors"></a>

The following table lists the errors that are specific to data group endpoints.


| Error | Cause | 
| --- | --- | 
| `DataGroupEndpointAlreadyExistsFault` | A data group endpoint with this name already exists in this AWS account and AWS Region. Specify a different name. | 
| `DataGroupEndpointNameRequiredFault` | You enabled the endpoint without specifying a data group endpoint name. | 
| `DataGroupEndpointQuotaExceededFault` | The DB cluster has reached the maximum of 20 data group endpoints. For a move, this applies to the target DB cluster. | 
| `InvalidParameterCombinationException` | You specified a data group endpoint name without enabling the endpoint when you created the data group, or with `--no-enable-endpoint`. | 
| `InvalidParameterValueException` | You tried to rename a data group endpoint for a data group that has no endpoint. Enable an endpoint first. | 