Business Function
Landing zone for data from sources such as GODW, EDC, IxRS, etc.
There are four environments:
- dev
- qa
- uat
- prod
Scope
The scope of this document is all uat and prod running in the ACE Prod AWS Account.
The regional scope of this RC is the us-west-2 region of AWS.
NOTE:
gcoreprodRedshift cluster saves its snapshot inus-west-1andus-west-2simultaneously.
Out of Scope
- Multi-region availability is out of scope per business requirements.
Backup retention
- Backup retention for
devandqa: 30 days - Backup retention for
uatandprod: 14 days
By default, Amazon Redshift takes a snapshot about every eight hours or following every 5 GB per node of data changes, or whichever comes first. If your data is larger than 5 GB * the number of nodes, the shortest amount of time in between automated snapshot creation is 15 minutes. src: https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
Key Information
- Enabled VPN
- Logged in to AWS CLI
- Logged in to Terraform
- Name of Redshift cluster you want to restore
- Deployment files are available in terraform-ace-prod repo. Steps below are relevant to this repo.
Recovery Checklist & Dependencies
The following tables provide the step-by-step recovery checklist that the ACE Infra team can use to guide them through the recovery steps for the gCORE Redshift clusters.
| Status | Task Summary | Task Details |
|---|---|---|
| - [ ] Complete | Open terraform-ace-prod repo | Navigate to ./terraform-ace-prod/us-west-2 |
| - [ ] Complete | Search for Redshift directory | In the directory, search for the name of Redshift you want to restore (In VSCode is by command + f on explorer tab) and navigate to its directory |
| - [ ] Complete | Find the latest snapshot | Find latest snapshot of Redshift cluster in AWS Console then copy the snapshot ID |
| - [ ] Complete | Make changes | Follow [Disaster Recovery] comments in main.tf file, and make changes accordingly |
| - [ ] Complete | terraform init | Run terraform init |
| - [ ] Complete | terraform plan | After successful run of terraform init, run terraform plan |
| - [ ] Complete | terraform apply | After successful run of terraform plan, run terraform apply |