We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7efd27 + b87f5c3 commit 70c9f87Copy full SHA for 70c9f87
terraform/common/alb/https-listener/main.tf
@@ -5,8 +5,13 @@ resource "aws_alb_listener" "https" {
5
certificate_arn = var.https_listener.certificate_arn
6
7
default_action {
8
- type = var.https_listener.type
9
- target_group_arn = var.https_listener.default_target_group_arn
+ type = "fixed-response"
+
10
+ fixed_response {
11
+ content_type = "text/plain"
12
+ message_body = "Access Denied: Invalid Host"
13
+ status_code = "403"
14
+ }
15
}
16
17
0 commit comments