HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/rds/describe-db-cluster-endpoints.rst
**Example 1: To describe DB cluster endpoints**

The following ``describe-db-cluster-endpoints`` example retrieves details for your DB cluster endpoints. The most common kinds of Aurora clusters have two endpoints. One endpoint has type ``WRITER``. You can use this endpoint for all SQL statements. The other endpoint has type ``READER``. You can use this endpoint only for SELECT and other read-only SQL statements. ::

    aws rds describe-db-cluster-endpoints

Output::

    {
        "DBClusterEndpoints": [
            {
                "DBClusterIdentifier": "my-database-1",
                "Endpoint": "my-database-1.cluster-cnpexample.us-east-1.rds.amazonaws.com",
                "Status": "creating",
                "EndpointType": "WRITER"
            },
            {
                "DBClusterIdentifier": "my-database-1",
                "Endpoint": "my-database-1.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
                "Status": "creating",
                "EndpointType": "READER"
            },
            {
                "DBClusterIdentifier": "mydbcluster",
                "Endpoint": "mydbcluster.cluster-cnpexamle.us-east-1.rds.amazonaws.com",
                "Status": "available",
                "EndpointType": "WRITER"
            },
            {
                "DBClusterIdentifier": "mydbcluster",
                "Endpoint": "mydbcluster.cluster-ro-cnpexample.us-east-1.rds.amazonaws.com",
                "Status": "available",
                "EndpointType": "READER"
            }
        ]
    }

**Example 2: To describe DB cluster endpoints of a single DB cluster**

The following ``describe-db-cluster-endpoints`` example retrieves details for the DB cluster endpoints of a single specified DB cluster. Aurora Serverless clusters have only a single endpoint with a type of ``WRITER``. ::

    aws rds describe-db-cluster-endpoints \
        --db-cluster-identifier serverless-cluster

Output::

    {
        "DBClusterEndpoints": [
            {
                "Status": "available",
                "Endpoint": "serverless-cluster.cluster-cnpexample.us-east-1.rds.amazonaws.com",
                "DBClusterIdentifier": "serverless-cluster",
                "EndpointType": "WRITER"
            }
        ]
    }

For more information, see `Amazon Aurora Connection Management <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.Endpoints.html>`__ in the *Amazon Aurora User Guide*.