From 57965a2a5a6cb75683fd22455b8d7b2e13ae2202 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 10 Jan 2023 00:28:27 -0800 Subject: [PATCH] Replacing target group with proper shockrah.xyz group --- infra/load-balancer.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }