Skip to content

Commit 1146e9a

Browse files
committed
Update instance types and add RDS DB
1 parent 79e8d85 commit 1146e9a

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

aws/main.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ provider "aws" {
99
resource "aws_instance" "my_web_app" {
1010
ami = "ami-005e54dee72cc1d00"
1111

12-
instance_type = "m3.xlarge"
12+
instance_type = "mm5.8xlarge"
1313

1414
tags = {
1515
Environment = "production"
@@ -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)