File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ resource "aws_lb_listener_rule" "http_to_https_redirect" {
8282
8383resource "aws_lb_listener_rule" "app_http_forward" {
8484 count = var. certificate_arn == null ? 1 : 0
85-
85+
8686 listener_arn = aws_lb_listener. alb_listener_http . arn
8787 priority = 100
8888
@@ -124,7 +124,11 @@ resource "aws_lb_listener" "alb_listener_https_no_cert" {
124124
125125 load_balancer_arn = aws_lb. alb . arn
126126 port = 443
127- protocol = " HTTP" # Using HTTP protocol for fixed-response
127+ protocol = " HTTPS"
128+ # Use a self-signed certificate for the 503 response
129+ certificate_arn = module. domain . certificate_arn
130+ # Use security policy that supports TLS 1.3 but requires at least TLS 1.2
131+ ssl_policy = " ELBSecurityPolicy-TLS13-1-2-2021-06"
128132
129133 default_action {
130134 type = " fixed-response"
You can’t perform that action at this time.
0 commit comments