Skip to content

Commit

Permalink
Create main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
collabnix committed Jul 15, 2023
1 parent 3016e44 commit fa5b6b9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions beginners/rds-restore/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# main.tf

# Configure the AWS provider
provider "aws" {
region = "us-west-2" # Update with your desired region
}

# Define the RDS instance
resource "aws_db_instance" "example" {
engine = "mysql"
instance_class = "db.t3.micro"
allocated_storage = 20
storage_type = "gp2"
identifier = "my-rds-instance"
username = "admin"
password = "password"
publicly_accessible = false

# Other RDS configuration settings...

# Enable automatic backups and set the retention period
backup_retention_period = 7
backup_window = "03:00-04:00"
maintenance_window = "sun:05:00-sun:06:00"
}

0 comments on commit fa5b6b9

Please sign in to comment.