- Newest
- Most votes
- Most comments
To migrate your Aurora Serverless v1 cluster to v2 with minimal downtime while using Data API, you can follow a modified approach that addresses the issue with Data API compatibility. Here's a recommended process:
-
Start by creating a blue/green deployment of your existing Aurora Serverless v1 cluster. This allows you to upgrade the engine version without affecting the original cluster.
-
In the green environment, upgrade the Aurora MySQL version to one that supports both Aurora Serverless v2 and Data API (version 3.02.0 or later).
-
Add an Aurora Serverless v2 reader instance to the green cluster using the db.serverless instance class.
-
Enable Data API on the green cluster. This ensures that the Data API functionality is available on the new cluster before you switch over.
-
Perform a failover to promote the Aurora Serverless v2 reader to a writer instance.
-
Test the green environment thoroughly to ensure all functionality, including Data API, works as expected.
-
Once you're satisfied with the testing, switch over your application to use the green environment. This can be done by updating the endpoint in your application or by using Amazon Route 53 to update DNS records if you're using custom domain names.
-
After the switchover, you can delete the blue/green deployment resources.
This approach allows you to maintain Data API functionality throughout the migration process and minimizes downtime. The blue/green deployment strategy ensures that your original cluster remains operational until you're ready to switch, and you can keep using the same credentials stored in Secrets Manager.
It's important to note that while this process aims to minimize downtime, there may still be a brief interruption during the final switchover. However, this downtime should be significantly less than converting the original cluster from Serverless v1 to provisioned and then to Serverless v2.
Remember to thoroughly test your application with the new Aurora Serverless v2 cluster before the final switchover to ensure compatibility and optimal performance.
Sources
Migrate Aurora Serverless v1 cluster to v2 | AWS re:Post
Migrating to Aurora Serverless v2 - Amazon Aurora
Introducing the Data API for Amazon Aurora Serverless v2 and Amazon Aurora provisioned clusters | AWS Database Blog
Relevant content
- asked 3 years ago
- asked 8 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 10 months ago

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments-considerations.html We cannot create blue/green deployment for Aurora Serverless V1 itself.