Skip to content

Commit

Permalink
Create rds-restore.md
Browse files Browse the repository at this point in the history
  • Loading branch information
collabnix committed Jul 15, 2023
1 parent 15248ef commit 3068e01
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions beginners/rds-restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Creating an automated RDS (Amazon Relational Database Service) instance and implementing a restore strategy using Terraform

A high-level overview of the steps involved, along with some guidance on troubleshooting the issues you're facing.
Please note that this overview assumes you have some familiarity with Terraform and AWS services.

1. Set up the necessary AWS and Terraform configurations:

- Ensure you have valid AWS credentials with appropriate permissions.
- Install and configure Terraform on your local machine.
- Create a new Terraform project directory and initialize it.

2. Define your Terraform configuration files:

- Create a .tf file (e.g., main.tf) for your RDS instance configuration.
- Specify the required AWS provider and region.
- Define the RDS instance resource, specifying details such as engine, instance type, storage, etc.
- Define any necessary security groups, subnets, and parameter groups.

3. Configure automatic backups and enable the backup retention period:

- Specify the backup_retention_period for your RDS instance.
- Enable automated backups by setting backup_window and maintenance_window parameters.

4. Implement the restore strategy:

- Create a new .tf file for the restore configuration (e.g., restore.tf).
- Define a new RDS instance resource using the restored snapshot ID.
- Configure necessary settings like DB instance identifier, engine, instance type, security groups, etc.

5. Plan and apply your Terraform configuration:

- Run terraform init to initialize your Terraform project.
- Run terraform plan to verify the changes and ensure the configuration is correct.
- Run terraform apply to create the RDS instance and implement the restore strategy.

0 comments on commit 3068e01

Please sign in to comment.