Connecting to an Amazon Aurora global database - Amazon Aurora
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Connecting to an Amazon Aurora global database

How you connect to an Aurora global database depends on whether you need to write to the database or read from the database:

  • For read-only requests or queries, you connect to the reader endpoint for the Aurora cluster in your Amazon Web Services Region.

  • To run data manipulation language (DML) or data definition language (DDL) statements, you connect to the cluster endpoint for the primary cluster. This endpoint might be in a different Amazon Web Services Region than your application.

When you view an Aurora global database in the console, you can see all the general-purpose endpoints associated with all of its clusters. The following screenshot shows an example. There is a single cluster endpoint associated with the primary cluster that you use for write operations. The primary cluster and each secondary cluster has a reader endpoint that you use for read-only queries. To minimize latency, choose whichever reader endpoint is in your Amazon Web Services Region or the Amazon Web Services Region closest to you. The following shows an Aurora MySQL example.


        Screenshot showing an Aurora global database and associated connectivity settings (endpoints)
          in the Amazon Web Services Management Console.