Skip to content

Commit

Permalink
add AppConfig variables to id-broker task definition
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Feb 13, 2024
1 parent b207887 commit a9ec25b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform/040-id-broker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions terraform/040-id-broker/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a9ec25b

Please sign in to comment.