Skip to content

Commit 1856d62

Browse files
authored
Create restore.tf
1 parent fa5b6b9 commit 1856d62

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

‎beginners/rds-restore/restore.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# restore.tf
2+
3+
# Define the restored RDS instance
4+
resource "aws_db_instance" "restored_example" {
5+
engine = "mysql"
6+
instance_class = "db.t3.micro"
7+
allocated_storage = 20
8+
storage_type = "gp2"
9+
identifier = "restored-rds-instance"
10+
username = "admin"
11+
password = "password"
12+
publicly_accessible = false
13+
14+
# Other RDS configuration settings...
15+
16+
# Specify the snapshot ID to restore from
17+
snapshot_identifier = "<snapshot-id>"
18+
}

0 commit comments

Comments
 (0)