blob: 57baa24276d3585ab90f865431a2344726c44075 (
plain)
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
|
data "vault_kv_secret_v2" "fdio_logs" {
mount = "kv"
name = "etl/fdio_logs"
}
data "vault_kv_secret_v2" "fdio_docs" {
mount = "kv"
name = "etl/fdio_docs"
}
module "etl" {
for_each = { for job in var.nomad_jobs : job.job_name => job }
providers = {
nomad = nomad.yul1
}
source = "../terraform-nomad-nomad-job"
aws_access_key_id = data.vault_kv_secret_v2.fdio_logs.data.access_key
aws_secret_access_key = data.vault_kv_secret_v2.fdio_logs.data.secret_key
aws_default_region = data.vault_kv_secret_v2.fdio_logs.data.region
out_aws_access_key_id = data.vault_kv_secret_v2.fdio_docs.data.access_key
out_aws_secret_access_key = data.vault_kv_secret_v2.fdio_docs.data.secret_key
out_aws_default_region = data.vault_kv_secret_v2.fdio_docs.data.region
cron = "0 30 0 * * * *"
datacenters = ["yul1"]
job_name = each.key
memory = each.value.memory
}
|