Skip to content

Commit

Permalink
Merge pull request #140 from companieshouse/feature/IDVA5-591
Browse files Browse the repository at this point in the history
change load balancer config
  • Loading branch information
akachwala-ch authored Mar 7, 2024
2 parents 531691b + cfdd4bb commit e4868c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions terraform/groups/ecs-service/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ data "aws_iam_role" "ecs_cluster_iam_role" {
name = "${local.name_prefix}-ecs-task-execution-role"
}

data "aws_lb" "service_lb" {
name = "${var.environment}-chs-accountchgovuk"
data "aws_lb" "identity_lb" {
name = "${var.environment}-chs-chgovuk"
}

data "aws_lb_listener" "service_lb_listener" {
load_balancer_arn = data.aws_lb.service_lb.arn
data "aws_lb_listener" "identity_lb_listener" {
load_balancer_arn = data.aws_lb.identity_lb.arn
port = 443
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/groups/ecs-service/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ locals {
service_name = "acsp-web"
container_port = "3000" # default Node port to match start script
docker_repo = "acsp-web"
lb_listener_rule_priority = 16
lb_listener_rule_priority = 17
lb_listener_paths = ["/register-acsp*"]
healthcheck_path = "/register-acsp/healthcheck" #healthcheck path for acsp service
healthcheck_matcher = "200"
Expand Down
2 changes: 1 addition & 1 deletion terraform/groups/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module "ecs-service" {
task_execution_role_arn = data.aws_iam_role.ecs_cluster_iam_role.arn

# Load balancer configuration
lb_listener_arn = data.aws_lb_listener.service_lb_listener.arn
lb_listener_arn = data.aws_lb_listener.identity_lb_listener.arn
lb_listener_rule_priority = local.lb_listener_rule_priority
lb_listener_paths = local.lb_listener_paths

Expand Down

0 comments on commit e4868c9

Please sign in to comment.