Skip to content

Commit

Permalink
move eCR metadata db variables to modules (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobanL authored Nov 4, 2024
1 parent c2aa5c2 commit cb3f696
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
12 changes: 0 additions & 12 deletions terraform/implementation/ecs/_variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,3 @@ variable "vpc_cidr" {
type = string
default = "176.24.0.0/16"
}

variable "ecr_viewer_database_type" {
description = "The SQL variant used for the eCR data tables"
type = string
default = "postgres"
}

variable "ecr_viewer_database_schema" {
description = "The database schema used for the eCR data tables"
type = string
default = "core"
}
8 changes: 8 additions & 0 deletions terraform/modules/ecs/_local.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ locals {
{
name = "NEXT_PUBLIC_BASEPATH",
value = var.ecr_viewer_basepath
},
{
name = "METADATA_DATABASE_SCHEMA",
value = var.ecr_viewer_metadata_database_schema
},
{
name = "METADATA_DATABASE_TYPE",
value = var.ecr_viewer_metadata_database_type
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions terraform/modules/ecs/_variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,15 @@ Iynom6unaheZpS4DFIh2w9UCAwEAAQ==
-----END PUBLIC KEY-----
EOT
}

variable "ecr_viewer_metadata_database_schema" {
description = "The database schema used for the eCR metadata tables"
type = string
default = "core"
}

variable "ecr_viewer_metadata_database_type" {
description = "The SQL variant used for the eCR metadata tables"
type = string
default = "postgres"
}

0 comments on commit cb3f696

Please sign in to comment.