Add member clusters
In this step, you add your Aurora DB clusters to the database cluster group for Aurora as member clusters. Adding a cluster copies no data and doesn't change its endpoints, so its own endpoints keep working. From then on, the group coordinates upgrades in waves, backups and point-in-time restore, and monitoring across its member clusters.
Topics
Choosing your starting point
You can add Aurora DB clusters that you already run, new clusters, or both. Use the following table to find the section for your starting point.
| You want to | Start with |
|---|---|
| Upgrade, back up, restore, and monitor the clusters that you run today from one group, with no change to how applications connect | Adding clusters that you already run |
| Create new clusters for the group | Adding new clusters |
| Add the cluster of a packaged application whose schema and SQL you don't own | Packaged applications |
| Manage several clusters that your application or a proxy already splits data across | Adding clusters that you already run, then Describing existing data partitions with data mappings in Step 4 |
Every member cluster stays directly reachable through its own endpoints. If you enable routing in Step 4, you choose for each application whether it uses the routing endpoint.
Adding new clusters
To create each cluster, follow Creating an Amazon Aurora DB cluster. For the group, each new cluster needs the following:
-
The same AWS account and AWS Region as the group, the group's engine, and a supported engine version. For supported versions, see Limitations and considerations for database cluster groups for Aurora.
-
On Aurora MySQL version 8.4.900, create the cluster without DB instances and add its writer after the cluster joins the group. Member clusters can use provisioned or Aurora Serverless v2 DB instances; an Aurora Serverless v2 minimum capacity of 0 isn't supported.
Add a cluster to the group before you create its DB instances. On Aurora MySQL version 8.4.900, if you create a DB instance before the cluster joins the group, the request fails with an InvalidDBClusterStateFault error.
Add each cluster to the group, as described in Adding a cluster to the group.
Adding clusters that you already run
You can add an Aurora DB cluster that runs version 8.4.900 to the group without moving data. On Aurora MySQL version 8.4.900, a DB cluster outside a group has no DB instances. The add restarts nothing and drops no connections. Create the DB instances after the cluster joins.
You can't upgrade an existing DB cluster to version 8.4.900. To bring a DB cluster that runs an earlier Aurora MySQL 8.4 version into the group, restore a snapshot of it onto version 8.4.900. A restore onto 8.4.900 from an earlier major version, such as Aurora MySQL version 3, isn't supported. For more information, see General limitations. First, create a snapshot of the DB cluster.
aws rds create-db-cluster-snapshot \ --db-cluster-identifiermydbcluster\ --db-cluster-snapshot-identifiermydbclustersnapshot
Then restore the snapshot onto version 8.4.900.
aws rds restore-db-cluster-from-snapshot \ --db-cluster-identifiermynewdbcluster\ --snapshot-identifiermydbclustersnapshot\ --engine aurora-mysql \ --engine-version 8.4.mysql_aurora.8.4.900
Each cluster keeps its endpoints, parameter group, maintenance window, automated backups, encryption key, and network settings. For more information about the checks to run before a cluster joins, see Before you add a member cluster. For more information about packaged applications, see Packaged applications. To add a cluster in place, use the following procedure.
Adding a cluster to the group
Add each cluster to the group, one at a time.
If the cluster's engine version is earlier than the minimum supported version for its engine, the add request fails with an InvalidParameterValue error.
After a cluster joins the group, each DB instance that you create in that cluster comes up as part of the database cluster group for Aurora.
Each member cluster belongs to an upgrade wave. You set it with --db-cluster-group-upgrade-wave when you add the cluster, or later with modify-db-cluster, and describe-db-clusters returns it. A member cluster that you don't assign to a wave is in the first wave. For how waves run, see Upgrading a database cluster group for Aurora in waves.
Result: The group holds every cluster that you added. Each cluster keeps its data and its endpoints. Create its DB instances after it joins. Upgrades in waves, group backup and restore, and monitoring now cover every member cluster. To take a cluster out of the group later, see Removing a member cluster.
Next, connect to each member cluster and check it, in Connect and check your member clusters. If you don't use routing, you can then continue at Managing a database cluster group for Aurora.