-
Notifications
You must be signed in to change notification settings - Fork 73
/
app.tf
37 lines (30 loc) · 1019 Bytes
/
app.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
// ECS deployment and CI integration of bors.
module "bors" {
source = "../shared/modules/ecs-app"
cluster_config = data.terraform_remote_state.shared.outputs.ecs_cluster_config
env = "prod"
name = "bors"
repo = "rust-lang/homu"
cpu = 1024
memory = 2048
tasks_count = 1
platform_version = "1.4.0"
mount_efs = "/efs"
secrets = {
GITHUB_TOKEN = "/prod/bors/github-token"
GITHUB_CLIENT_ID = "/prod/bors/github-client-id"
GITHUB_CLIENT_SECRET = "/prod/bors/github-client-secret"
HOMU_SSH_KEY = "/prod/bors/ssh-key"
}
computed_secrets = {
for repo in keys(var.repositories) :
"HOMU_WEBHOOK_SECRET_${upper(replace(repo, "-", "_"))}" => aws_ssm_parameter.webhook_secrets[repo].arn
}
expose_http = {
container_port = 80
domains = concat([var.domain_name], var.legacy_domain_names)
health_check_path = "/health"
health_check_interval = 60
health_check_timeout = 50
}
}