There was an error while loading. Please reload this page.
1 parent fa5b6b9 commit 1856d62Copy full SHA for 1856d62
beginners/rds-restore/restore.tf
@@ -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