forked from vmware-archive/terraforming-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules.tf
28 lines (20 loc) · 819 Bytes
/
modules.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
module "external_database" {
source = "./external_database"
count = "${var.external_database ? 1 : 0}"
env_name = "${var.env_name}"
region = "${var.region}"
sql_db_tier = "db-f1-micro"
pas_sql_db_host = "${var.pas_sql_db_host}"
opsman_sql_db_host = "${var.opsman_sql_db_host}"
}
module "isolation_segment" {
source = "./isolation_segment"
count = "${var.isolation_segment ? 1 : 0}"
env_name = "${var.env_name}"
zones = "${var.zones}"
ssl_cert = "${var.iso_seg_ssl_cert}"
ssl_private_key = "${var.iso_seg_ssl_private_key}"
dns_zone_name = "${google_dns_managed_zone.env_dns_zone.name}"
dns_zone_dns_name = "${google_dns_managed_zone.env_dns_zone.dns_name}"
public_healthcheck_link = "${google_compute_http_health_check.cf-public.self_link}"
}