-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathapplications.tf
More file actions
80 lines (66 loc) · 1.79 KB
/
applications.tf
File metadata and controls
80 lines (66 loc) · 1.79 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
locals {
is_prod = terraform.workspace == "production"
}
# Applications
module "pretix" {
source = "./pretix"
count = 1
server_ip = module.cluster.server_ip
cluster_id = module.cluster.cluster_id
logs_group_name = module.cluster.logs_group_name
database_settings = module.database.database_settings
}
module "pycon_backend" {
source = "./pycon_backend"
cluster_id = module.cluster.cluster_id
security_group_id = module.cluster.security_group_id
server_ip = module.cluster.server_ip
logs_group_name = module.cluster.logs_group_name
iam_role_arn = module.cluster.iam_role_arn
database_settings = module.database.database_settings
vpc_id = module.vpc.vpc_id
public_1a_subnet_id = module.vpc.public_1a_subnet_id
configuration_set_name = module.emails.configuration_set_name
providers = {
aws.us = aws.us
}
}
module "pycon_frontend" {
source = "./pycon_frontend"
cluster_id = module.cluster.cluster_id
logs_group_name = module.cluster.logs_group_name
server_ip = module.cluster.server_ip
cf_domain_name = module.cluster.cf_domain_name
cf_hosted_zone_id = module.cluster.cf_hosted_zone_id
}
module "clamav" {
source = "./clamav"
cluster_id = module.cluster.cluster_id
logs_group_name = module.cluster.logs_group_name
}
# Other resources
module "database" {
source = "./database"
private_subnets_ids = module.vpc.private_subnets_ids
vpc_id = module.vpc.vpc_id
}
module "emails" {
source = "./emails"
providers = {
aws.us = aws.us
}
}
module "cluster" {
source = "./cluster"
vpc_id = module.vpc.vpc_id
public_1a_subnet_id = module.vpc.public_1a_subnet_id
providers = {
aws.us = aws.us
}
}
module "vpc" {
source = "./vpc"
}
output "server_public_ip" {
value = module.cluster.server_public_ip
}