Skip to content

Commit

Permalink
Fix env var merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mdragon committed Nov 20, 2024
1 parent ab9c5cc commit 0519236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions infra/analytics/metabase/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ module "service" {
drop_linux_capabilities = false
healthcheck_command = null
healthcheck_path = "/"
extra_environment_variables = {

extra_environment_variables = merge(local.service_config.extra_environment_variables, {
ENVIRONMENT = var.environment_name
MB_DB_PORT = data.aws_rds_cluster.db_cluster.port
MB_DB_HOST = data.aws_rds_cluster.db_cluster.endpoint
}
})

secrets = concat(
[for secret_name in keys(local.service_config.secrets) : {
Expand Down

0 comments on commit 0519236

Please sign in to comment.