-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.tf
67 lines (53 loc) · 1.55 KB
/
locals.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
59
60
61
62
63
64
65
66
67
locals {
isProduction = var.environment == "production"
namespace = "ngohub-${var.environment}"
env_suffix = local.isProduction ? "" : "-${var.environment}"
availability_zone = data.aws_availability_zones.current.names[1]
db = {
instance_class = "db.t4g.micro"
}
mail_domain = var.email_domain != null ? var.email_domain : var.root_domain
mail_from = "NGO Hub <no-reply@${local.mail_domain}>"
ngohub = {
namespace = "ngohub-${var.environment}"
auth = {
domain = "auth${local.env_suffix}.${var.root_domain}"
}
backend = {
domain = "api${local.env_suffix}.${var.root_domain}"
image = {
repo = data.aws_ecr_repository.ngohub_backend.repository_url
tag = "2.0.0"
}
}
frontend = {
domain = "app${local.env_suffix}.${var.root_domain}"
}
}
vic = {
namespace = "vic-${var.environment}"
auth = {
domain = "auth-vic${local.env_suffix}.${var.root_domain}"
}
backend = {
domain = "api-vic${local.env_suffix}.${var.root_domain}"
image = {
repo = data.aws_ecr_repository.vic_backend.repository_url
tag = "1.0.20"
}
}
frontend = {
domain = "vic${local.env_suffix}.${var.root_domain}"
}
}
centrucivic = {
frontend = {
domain = local.isProduction ? "www.centrucivic.ro" : "centrucivic${local.env_suffix}.${var.root_domain}"
}
}
practice4good = {
frontend = {
domain = local.isProduction ? "www.practice4good.ro" : "practice4good${local.env_suffix}.${var.root_domain}"
}
}
}