-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
43 lines (33 loc) · 1.33 KB
/
main.tf
File metadata and controls
43 lines (33 loc) · 1.33 KB
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
module "s3_alb_log" {
source = "git::https://github.com/Cimpress-MCP/terraform.git//s3_elb_access_logs"
# name of bucket to create. Must be unique within AWS
bucket_name = "${data.template_file.name.rendered}-alb-logs"
# extra tags
extra_tags = "${var.extra_tags}"
}
# RDS module for the backend MySQL db.
module "rds" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-rds"
identifier = "${data.template_file.name.rendered}-rds"
allocated_storage = "${var.db_size}"
engine = "${var.db_engine}"
engine_version = "${var.rds_engine_version}"
instance_class = "${var.rds_instance_class}"
family = "${var.rds_family}"
name = "${data.template_file.db_name.rendered}"
username = "${var.db_user}"
password = "${var.db_pwd}"
port = "${var.db_port}"
skip_final_snapshot = "${var.skip_final_snapshot}"
multi_az = true
copy_tags_to_snapshot = true
storage_encrypted = true
maintenance_window = "Mon:00:00-Mon:03:00"
backup_window = "03:00-06:00"
vpc_security_group_ids = ["${aws_security_group.security_monkey_rds_security_group.id}"]
subnet_ids = "${var.private_subnets}"
timeouts = {
"create" = "15m"
}
tags = "${var.extra_tags}"
}