-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.tf
More file actions
52 lines (45 loc) · 2.1 KB
/
Copy pathmain.tf
File metadata and controls
52 lines (45 loc) · 2.1 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
module "networking" {
source = "sourcegraph/executors/google//modules/networking"
version = "7.1.0" # LATEST
region = local.region
}
module "docker-mirror" {
source = "sourcegraph/executors/google//modules/docker-mirror"
version = "7.1.0" # LATEST
zone = local.zone
network_id = module.networking.network_id
subnet_id = module.networking.subnet_id
instance_tag_prefix = "prod"
}
module "executors-codeintel" {
source = "sourcegraph/executors/google//modules/executors"
version = "7.1.0" # LATEST
zone = local.zone
network_id = module.networking.network_id
subnet_id = module.networking.subnet_id
resource_prefix = "codeintel-prod"
instance_tag = "codeintel-prod"
sourcegraph_external_url = "https://sourcegraph.acme.com"
sourcegraph_executor_proxy_password = "hunter2"
queue_name = "codeintel"
metrics_environment_label = "prod"
docker_registry_mirror = "http://${module.docker-mirror.ip_address}:5000"
# docker_registry_mirror_node_exporter_url = "http://${module.docker-mirror.ip_address}:9999"
use_firecracker = true
}
module "executors-batches" {
source = "sourcegraph/executors/google//modules/executors"
version = "7.1.0" # LATEST
zone = local.zone
network_id = module.networking.network_id
subnet_id = module.networking.subnet_id
resource_prefix = "batches-prod"
instance_tag = "batches-prod"
sourcegraph_external_url = "https://sourcegraph.acme.com"
sourcegraph_executor_proxy_password = "hunter2"
queue_name = "batches"
metrics_environment_label = "prod"
docker_registry_mirror = "http://${module.docker-mirror.ip_address}:5000"
# docker_registry_mirror_node_exporter_url = "http://${module.docker-mirror.ip_address}:9999"
use_firecracker = true
}