diff --git a/terraform/040-id-broker/main.tf b/terraform/040-id-broker/main.tf index f19ef53..b391eb9 100644 --- a/terraform/040-id-broker/main.tf +++ b/terraform/040-id-broker/main.tf @@ -79,6 +79,9 @@ locals { subdomain_with_region = "${var.subdomain}-${local.aws_region}" task_def = templatefile("${path.module}/task-definition.json", { + app_id = var.app_id + env_id = var.env_id + config_id = var.config_id api_access_keys = local.api_access_keys abandoned_user_abandoned_period = var.abandoned_user_abandoned_period abandoned_user_best_practice_url = var.abandoned_user_best_practice_url @@ -210,6 +213,9 @@ module "ecsservice" { */ locals { task_def_cron = templatefile("${path.module}/task-definition.json", { + app_id = var.app_id + env_id = var.env_id + config_id = var.config_id api_access_keys = local.api_access_keys abandoned_user_abandoned_period = var.abandoned_user_abandoned_period abandoned_user_best_practice_url = var.abandoned_user_best_practice_url diff --git a/terraform/040-id-broker/task-definition.json b/terraform/040-id-broker/task-definition.json index dc3e202..a49ba34 100644 --- a/terraform/040-id-broker/task-definition.json +++ b/terraform/040-id-broker/task-definition.json @@ -21,6 +21,18 @@ "ulimits": null, "dockerSecurityOptions": null, "environment": [ + { + "name": "APP_ID", + "value": "${app_id}" + }, + { + "name": "ENV_ID", + "value": "${env_id}" + }, + { + "name": "CONFIG_ID", + "value": "${config_id}" + }, { "name": "ABANDONED_USER_abandonedPeriod", "value": "${abandoned_user_abandoned_period}"