File size: 2,468 Bytes
3f1727f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
**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*.