Skip to content

Commit

Permalink
update orchestration and ecr-viewer env vars so that we may use /ecr-…
Browse files Browse the repository at this point in the history
…viewer as the basepath
  • Loading branch information
alismx committed Sep 12, 2024
1 parent 881d5d5 commit ccb324c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
11 changes: 9 additions & 2 deletions terraform/modules/ecs/_local.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ locals {
{
name = "APP_ENV",
value = "test"
},
{
name = "NODE_ENV",
value = var.node_env
},
{
name = "NEXT_PUBLIC_BASEPATH",
value = var.ecr_viewer_basepath
}

]
},
fhir-converter = {
Expand Down Expand Up @@ -148,7 +155,7 @@ locals {
},
{
name = "ECR_VIEWER_URL",
value = "http://ecr-viewer:3000"
value = "http://ecr-viewer:3000${var.ecr_viewer_basepath}"
},
{
name = "MESSAGE_PARSER_URL",
Expand Down
14 changes: 13 additions & 1 deletion terraform/modules/ecs/_variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ variable "s3_viewer_bucket_role_name" {
variable "phdi_version" {
type = string
description = "Version of the PHDI application"
default = "v1.6.1"
default = "v1.6.3"
}

variable "service_data" {
Expand Down Expand Up @@ -156,4 +156,16 @@ variable "non_integrated_viewer" {
type = string
description = "A flag to determine if the viewer is the non-integrated version"
default = "false"
}

variable "node_env" {
type = string
description = "The node environment"
default = "production"
}

variable "ecr_viewer_basepath" {
type = string
description = "The basepath for the ecr-viewer"
default = "/ecr-viewer"
}

0 comments on commit ccb324c

Please sign in to comment.