-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
41 lines (30 loc) · 871 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
provider "aws" {
region = "us-east-2"
}
module "db" {
source = "terraform-aws-modules/rds/aws"
identifier = "terraform-rds-rachit"
engine = "mysql"
engine_version = "5.7.38"
instance_class = "db.t3.micro"
allocated_storage = 20
db_name = "wordpressrachittf"
username = "admin"
password = "password"
port = "3306"
iam_database_authentication_enabled = true
vpc_security_group_ids = ["sg-0451ae4b10404e607"]
monitoring_interval = "30"
monitoring_role_name = "RachitRDSMonitoringRole"
create_monitoring_role = true
tags = {
Name = "terraform-rds-rachit"
}
# DB subnet group
create_db_subnet_group = true
subnet_ids = ["subnet-0f538e3830ee89ae2", "subnet-0137f79e0f79ac457"]
# DB parameter group
family = "mysql5.7"
# DB option group
major_engine_version = "5.7"
}