-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CUMULUS-3671]: Update docs for Serverless V2 (#3666)
* initial commit * serverless v2 doc updates * Update serverless V2 docs * Fix lint issue
- Loading branch information
Showing
4 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
id: serverless-v2-upgrade | ||
title: Upgrading from Aurora Serverless V1 to V2 | ||
hide_title: false | ||
--- | ||
|
||
## There are 2 approaches to this migration | ||
|
||
### Option 1: Snapshot and Restore (simple process, more downtime) | ||
|
||
1. Take a manual snapshot of the v1 instance, including the current YYYY-MM-DD in the name of the snapshot. Wait for successful completion showing Status = Available. If this is an initial snapshot of the instance, it may take a substantial amount of time to complete. | ||
2. Ensure delete protection is turned off on the v1 instance, as it will be deleted and replaced with a v2 cluster and instance. Deletion protection can be toggled in the AWS Console under RDS > Databases > select database > Modify. | ||
3. Run "terraform show" to view the current state for module.rds_cluster.aws_rds_cluster.cumulus. | ||
Ensure final_snapshot_identifier is set in resource "aws_rds_cluster" "cumulus". Copy the value. If a snapshot exists with that name, delete that snapshot. | ||
Ensure skip_final_snapshot is false in resource "aws_rds_cluster" "cumulus". | ||
4. Update /example/rds-cluster-tf/terraform.tfvars (or custom .tfvars filename) to: | ||
remove: enable_upgrade | ||
add: snapshot_identifier = "final_snapshot_identifier" (Paste value from prior step) | ||
5. Stop ingest. | ||
6. Run "terraform apply" to create a new v2 cluster and instance(s) based on the v1 final snapshot, using the updated tfvars file (or custom .tfvars filename). Wait for completion. | ||
terraform apply -var-file=terraform.tfvars (or custom .tfvars filename) | ||
7. Resume ingest. | ||
8. The end result is the new v2 cluster is created containing the existing v1 data. | ||
|
||
### Option 2: Blue/Green Cutover (complex process, less downtime) | ||
|
||
Please see [AWS instructions](https://aws.amazon.com/blogs/database/upgrade-from-amazon-aurora-serverless-v1-to-v2-with-minimal-downtime/) for setting up a blue/green deployment. |