diff --git a/infra/load-balancer.tf b/infra/load-balancer.tf index 019ba1d..761bae2 100644 --- a/infra/load-balancer.tf +++ b/infra/load-balancer.tf @@ -20,8 +20,8 @@ resource "aws_lb" "alpha" { ## ECS services manage themselves when it comes to registering to the ## target group so we only need to provide the pool ##################################################################### -resource "aws_lb_target_group" "alpha_cluster" { - name = "${var.athens_prefix}-alpha-cluster" +resource "aws_lb_target_group" "shockrah_xyz" { + name = "${var.athens_prefix}-shockrah-xyz" port = 80 protocol = "HTTP" target_type = "ip" @@ -37,7 +37,7 @@ resource "aws_lb_listener" "https" { certificate_arn = aws_acm_certificate_validation.shockrah_xyz.certificate_arn default_action { type = "forward" - target_group_arn = aws_lb_target_group.alpha_cluster.arn + target_group_arn = aws_lb_target_group.shockrah_xyz.arn } }