From 01e6d7f99081543f6a4ea08a5b2010e3174e5667 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 9 Jan 2023 21:13:19 -0800 Subject: [PATCH] Attaching project-athen.xyz cert onto alpha LB SSL listener --- infra/load-balancer.tf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/infra/load-balancer.tf b/infra/load-balancer.tf index b8acc59..019ba1d 100644 --- a/infra/load-balancer.tf +++ b/infra/load-balancer.tf @@ -34,10 +34,18 @@ resource "aws_lb_listener" "https" { protocol = "HTTPS" ssl_policy = "ELBSecurityPolicy-2016-08" - certificate_arn = aws_acm_certificate_validation.sample.certificate_arn + certificate_arn = aws_acm_certificate_validation.shockrah_xyz.certificate_arn default_action { type = "forward" target_group_arn = aws_lb_target_group.alpha_cluster.arn } } +# Certificate attachment for project athens +########################################### +# Additional certificate for the .net +resource "aws_lb_listener_certificate" "alpha_project_athens_cert" { + listener_arn = aws_lb_listener.https.arn + certificate_arn = aws_acm_certificate_validation.project_athens_xyz.certificate_arn +} +