diff --git a/terraform/ecs.tf b/terraform/ecs.tf index 16a8ac6f..e897107e 100644 --- a/terraform/ecs.tf +++ b/terraform/ecs.tf @@ -84,7 +84,7 @@ resource "aws_ecs_task_definition" "wfprev_server" { }, { name = "WFPREV_DATASOURCE_URL" - value = "jdbc:postgresql://${aws_db_instance.wfprev_pgsqlDB.endpoint}/${aws_db_instance.wfprev_pgsqlDB.name}" + value = "jdbc:postgresql://${aws_db_instance.wfprev_pgsqlDB.endpoint}/${aws_db_instance.wfprev_pgsqlDB.db_name}" }, { name = "WFPREV_DATASOURCE_USERNAME" @@ -163,7 +163,7 @@ resource "aws_ecs_task_definition" "wfprev-liquibase" { environment = [ { name = "LIQUIBASE_COMMAND_URL" - value = "jdbc:postgresql://${aws_db_instance.wfprev_pgsqlDB.endpoint}/${aws_db_instance.wfprev_pgsqlDB.name}" + value = "jdbc:postgresql://${aws_db_instance.wfprev_pgsqlDB.endpoint}/${aws_db_instance.wfprev_pgsqlDB.db_name}" }, { name = "LIQUIBASE_COMMAND_USERNAME"