Skip to content

Commit

Permalink
Terraform 6 (#119)
Browse files Browse the repository at this point in the history
* changes

* addding wfprev_db_subnet
  • Loading branch information
yzlucas authored Oct 1, 2024
1 parent 4fa196b commit 18ef424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ resource "aws_ecs_task_definition" "wfprev_server" {

resource "aws_ecs_task_definition" "wfprev_client" {
family = "wfprev-client-task-${var.TARGET_ENV}"
# execution_role_arn = aws_iam_role.wfprev_ecs_task_execution_role.arn
# task_role_arn = aws_iam_role.wfprev_app_container_role.arn
execution_role_arn = aws_iam_role.wfprev_ecs_task_execution_role.arn
task_role_arn = aws_iam_role.wfprev_app_container_role.arn
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
cpu = var.WFPREV_CLIENT_CPU_UNITS
Expand Down
6 changes: 6 additions & 0 deletions terraform/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ resource "aws_db_instance" "wfprev_pgsqlDB" {
allocated_storage = var.DB_SIZE
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
storage_encrypted = true
Expand All @@ -29,6 +30,11 @@ resource "aws_db_instance" "wfprev_pgsqlDB" {
}
}

resource "aws_db_subnet_group" "wfprev_db_subnet" {
name = "main"
subnet_ids = module.network.aws_subnet_ids.data.ids
}

/*
resource "aws_db_instance" "wfone_pgsqlDB" {
identifier = "wfone${var.target_env}"
Expand Down

0 comments on commit 18ef424

Please sign in to comment.