aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-02-03 11:15:18 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-02-03 11:29:49 +0000
commita32f6fa10f5a75b59c6b2cc12576161185b738d5 (patch)
tree553944a05be44d43ea8d36dacdbe0e30fd7fb757 /fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf
parenta214378b5d0589fcbd9a9cc8c9b25bce8a862cec (diff)
feat(terraform): Optimize ETL execution
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I11dfe8f642c6d565d39b1e0fbc41361460a42320
Diffstat (limited to 'fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf')
-rw-r--r--fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf b/fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf
index c477da81a8..cd6a9a52ff 100644
--- a/fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf
+++ b/fdio.infra.terraform/terraform-nomad-pyspark-etl/main.tf
@@ -3,9 +3,9 @@ locals {
envs = join("\n", concat([], var.envs))
}
-resource "nomad_job" "nomad_job_etl" {
+resource "nomad_job" "nomad_job" {
jobspec = templatefile(
- "${path.module}/conf/nomad/etl.hcl.tftpl",
+ "${path.module}/conf/nomad/${var.job_name}.hcl.tftpl",
{
aws_access_key_id = var.aws_access_key_id,
aws_secret_access_key = var.aws_secret_access_key,