-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
executable file
·56 lines (45 loc) · 1.25 KB
/
main.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
module "certificates" {
source = "./modules/certificate"
project_name = local.env.project
workspace = local.env.bootstrap_workspace
env = local.env
}
module "random" {
source = "./modules/random"
names = local.workspaces
passwords = local.env.passwords
}
## The instanced services (i.e. RDS, S3, etc.) get created first.
## This allows their credentials to be injected into "user-provided" services (JSON blobs), if needed.
module "services" {
source = "./modules/service"
cloudfoundry = local.cloudfoundry
env = local.env
skip_user_provided_services = true
depends_on = [
module.random
]
}
module "secrets" {
source = "./modules/service"
cloudfoundry = local.cloudfoundry
env = local.env
skip_service_instances = true
secrets = local.secrets
depends_on = [
module.random
]
}
module "applications" {
source = "./modules/application"
cloudfoundry = local.cloudfoundry
env = local.env
secrets = local.secrets
services = local.services
}
module "circleci" {
source = "./modules/circleci"
env = local.env
secrets = local.secrets
schedules = local.env.circleci.schedules
}