Question: "How can I migrate from provisioned Aurora to Aurora Serverless, or from Aurora Serverless to provisioned Aurora?"

I want to migrate from a provisioned Amazon Aurora DB instance to an Aurora Serverless DB instance, or vice versa. How can I do this?Short descriptionThere are two methods that can be used to migrate from provisioned to serverless, and serverless to provisioned:Snapshot restore.Logical backup and restore.

ResolutionSnapshot restoreOpen the Amazon Relational Database Service (Amazon RDS) console, and then select Databases from the navigation pane.Select the Aurora cluster you want to migrate to provisioned or serverless, then select Actions, and then select Take snapshot. For more information, see Creating a DB cluster snapshot.Navigate to the Snapshots section of the Amazon RDS console.Select Actions, and then select Restore snapshot. For more information, see Restoring from a DB cluster snapshot.Select Provisioned or Serverless, based on what you want to do.Note: Aurora Serverless is available only on specific engine versions. For more information see, Aurora Serverless v1 and Aurora Serverless v2.For Aurora Serverless v1, select Serverless under Capacity type in the DB instance settings. For Serverless v2, select Serverless under DB instance class in the Instance configuration section.For the DB cluster identifier, enter a name for your restored cluster.Specify any other settings. For more information, see Settings for Aurora DB clusters.Select Restore DB Cluster.Logical backup and restoreCreate a new DB clusterOpen the Amazon RDS console, and then choose Databases from the navigation pane.Select Create database.Note: Amazon Aurora isn't available in all AWS Regions. For a list of AWS Regions where Aurora is available, see Region availability.Select Amazon Aurora in the Engine options.In Edition, select one of the following:a. Amazon Aurora with MySQL compatibilityb. Amazon Aurora with PostgreSQL compatibilitySelect your Engine version.Note: Aurora Serverless is available only on specific engine versions. For more information see, Aurora Serverless v1 and Aurora Serverless v2.Specify any other settings. For more information, see Creating a DB cluster.Select Create database.Create a logical backup and restoreConnect to the source DB cluster. If you use PostgreSQL, then run a pg_dump. If you use MySQL, then run a mysqldump.Connect to the new DB cluster. If you use PostgreSQL, then restore the dump on it with pg_restore. If you use MySQL, then restore the dump on it with mysql command.How to avoid data lossTo avoid data loss between the two clusters, stop all write activity on the source cluster until the restoration or migration of the newly created or restored cluster is complete. Stop all write activity before you create the snapshot, mysqldump, or pg_dump.When the new Aurora cluster is available, direct your application or write operations to the cluster to make sure that no write operations are lost.Note: The following example uses the name "example-cluster". For example, rename the old cluster to "example-cluster-old". Then, rename the new cluster to "example-cluster". This allows your applications to connect to the new cluster using the same cluster endpoint. For example, use "example-cluster.cluster-...rds.amazonaws.com" for the writer, and "example-cluster.cluster-ro-...rds.amazonaws.com" for the reader endpoint.