-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathapps.tf
46 lines (42 loc) · 1.47 KB
/
apps.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
locals {
apps = {
container = "https://${local.site_domain}",
content = "https://content.${local.site_domain}",
browse = "https://browse.${local.site_domain}",
order = "https://order.${local.site_domain}",
}
all_domains = [
"${local.apps["browse"]}",
"${local.apps["order"]}",
"${local.apps["content"]}",
"${local.apps["container"]}",
]
}
module "container" {
source = "./s3_site/"
domain = "${replace(local.apps["container"], "https://", "")}"
all_domains = "${local.all_domains}"
hosted_zone_id = "${data.aws_route53_zone.hosted_zone.zone_id}"
acm_certificate_arn = "${aws_acm_certificate.cert.arn}"
}
module "static_content" {
source = "./s3_site/"
domain = "${replace(local.apps["content"], "https://", "")}"
all_domains = "${local.all_domains}"
hosted_zone_id = "${data.aws_route53_zone.hosted_zone.zone_id}"
acm_certificate_arn = "${aws_acm_certificate.cert.arn}"
}
module "restaurant_browse_app" {
source = "./s3_site/"
domain = "${replace(local.apps["browse"], "https://", "")}"
all_domains = "${local.all_domains}"
hosted_zone_id = "${data.aws_route53_zone.hosted_zone.zone_id}"
acm_certificate_arn = "${aws_acm_certificate.cert.arn}"
}
module "restaurant_order_app" {
source = "./s3_site/"
domain = "${replace(local.apps["order"], "https://", "")}"
all_domains = "${local.all_domains}"
hosted_zone_id = "${data.aws_route53_zone.hosted_zone.zone_id}"
acm_certificate_arn = "${aws_acm_certificate.cert.arn}"
}