-
Notifications
You must be signed in to change notification settings - Fork 1
/
rds.tf
58 lines (20 loc) · 960 Bytes
/
rds.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Create the RDS instance
resource "aws_db_instance" "databaseterra" {
allocated_storage = "${var.database_size}"
engine = "${var.DbEngineType}"
engine_version = "${var.DbMajorEngineVersion}"
instance_class = "${var.DBInstanceClass}"
identifier = "testdbterra"
username = "${var.database_user}"
password = "${var.database_password}"
db_subnet_group_name = "${aws_db_subnet_group.rdssubnetgroupterra.id}"
parameter_group_name = "${aws_db_parameter_group.rdsparametergroupterra.id}"
multi_az = "${var.db_multiaz}"
vpc_security_group_ids = ["${aws_security_group.RdsSecurityGroupterra.id}"]
publicly_accessible = "false"
backup_retention_period = "2"
license_model = "license-included"
apply_immediately = "true"
tags = {
Env = "Non-Prod"
}