Skip to content

Commit

Permalink
Re-add DB_PASS and WFPREV_USERNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylver93 committed Oct 9, 2024
1 parent e486b51 commit 7780327
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ resource "aws_ecs_task_definition" "wfprev_server" {
name = "WFPREV_DATASOURCE_PASSWORD"
value = var.WFPREV_DATASOURCE_PASSWORD
},
{
name = "WFPREV_USERNAME"
value = var.WFPREV_USERNAME
},
{
name = "DB_PASS"
value = var.DB_PASS
},
{
name = "API_KEY"
value = var.api_key
Expand Down
4 changes: 2 additions & 2 deletions terraform/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ resource "aws_db_instance" "wfprev_pgsqlDB" {
multi_az = var.DB_MULTI_AZ
backup_retention_period = 7
allocated_storage = var.DB_SIZE
username = var.WFPREV_DATASOURCE_USERNAME
password = var.WFPREV_DATASOURCE_PASSWORD
username = var.WFPREV_USERNAME
password = var.DB_PASS
db_subnet_group_name = aws_db_subnet_group.wfprev_db_subnet.name
publicly_accessible = false
skip_final_snapshot = true
Expand Down
12 changes: 12 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ variable "WFPREV_DATASOURCE_PASSWORD" {
default = ""
}

variable "WFPREV_USERNAME" {
description = "db password, passed in as env variable at runtime"
type = string
default = ""
}

variable "DB_PASS" {
description = "db password, passed in as env variable at runtime"
type = string
default = ""
}

variable "api_key" {
description = "value for api key"
type = string
Expand Down

0 comments on commit 7780327

Please sign in to comment.