Skip to content

Commit 7ec264a

Browse files
authored
Add RDS
1 parent d90f887 commit 7ec264a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

aws/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ resource "aws_instance" "my_web_app" {
2121
volume_size = 1000
2222
}
2323
}
24+
25+
resource "aws_db_instance" "default" {
26+
allocated_storage = 1000
27+
db_name = "mydb"
28+
engine = "mysql"
29+
engine_version = "8.0"
30+
instance_class = "db.t3.micro"
31+
username = "foo"
32+
password = "foobarbaz"
33+
parameter_group_name = "default.mysql8.0"
34+
skip_final_snapshot = true
35+
}

0 commit comments

Comments
 (0)