-
Notifications
You must be signed in to change notification settings - Fork 10
DevOps: Disaster Recovery Plan For RDS Database Instances
Emmanuel Nwakire edited this page Mar 5, 2024
·
1 revision
Following our Information System Contingency Plan (ISCP) and Incident Response Plan (IRP) tabletop exercises, we have outlined a data recovery plan for our RDS instances in the event of an AWS infrastructure disaster scenario. The plan involves restoring our last backed-up data using various methods. In the event of a database instance failure or unavailability, follow these steps to restore:
- Access VAEC-AWS platform.
- Navigate to the RDS service.
- Select
"Snapshots-->Systems"
from the left sidebar of the RDS page. - Choose the appropriate snapshot (e.g., Dev Snapshot) if all instances are affected, start with the Dev snapshot
- Click on the
"Actions"
dropdown and select"Restore Snapshot."
- Once the database is restored, it automatically creates a new instance.
- Access VAEC-AWS platform.
- Navigate to the new DB instance and click on "Modify."
- Proceed to the Security Group settings and select the security group attached to your DB instance.
- Add the inbound rule for your EC2 instance's security group. Note that each EC2 instance has a different security group. For example, if you created a snapshot of the Dev Database, attach the Dev EC2 Security Group.
- Confirm that your servers can communicate with your EC2 instance by SSH into your EC2 instance.
- Change the directory to the diffusion marketplace, list Docker processes/containers, and execute the application container's shell.
Navigate to the app directory and execute the following command with appropriate parameters: #
psql "host=$**** port **** dbname=$**** user=$**** password=$****."
- If you receive a confirmation from the psql client regarding the server version, the connection is successful.