diff --git a/_example/alb/.terraform.tfstate.lock.info b/_example/alb/.terraform.tfstate.lock.info deleted file mode 100644 index 55505bc..0000000 --- a/_example/alb/.terraform.tfstate.lock.info +++ /dev/null @@ -1 +0,0 @@ -{"ID":"ae58f2a8-554e-dccf-de1a-212576bba8ea","Operation":"OperationTypeApply","Info":"","Who":"prakash@prakash","Version":"0.14.7","Created":"2021-05-20T11:07:36.390861083Z","Path":"terraform.tfstate"} \ No newline at end of file diff --git a/_example/alb/example.tf b/_example/alb/example.tf index 1463bd3..87ca748 100644 --- a/_example/alb/example.tf +++ b/_example/alb/example.tf @@ -148,8 +148,8 @@ module "alb" { target_id = module.ec2.instance_id vpc_id = module.vpc.vpc_id - https_enabled = true - http_enabled = true + https_enabled = false + http_enabled = false https_port = 443 listener_type = "forward" listener_certificate_arn = "arn:aws:acm:eu-west-1:924144197303:certificate/0418d2ba-91f7-4196-991b-28b5c60cd4cf" diff --git a/main.tf b/main.tf index b885c19..8d6fe0f 100644 --- a/main.tf +++ b/main.tf @@ -24,7 +24,6 @@ resource "aws_lb" "main" { internal = var.internal load_balancer_type = var.load_balancer_type security_groups = var.security_groups - drop_invalid_header_fields = var.drop_invalid_header_fields subnets = var.subnets enable_deletion_protection = var.enable_deletion_protection idle_timeout = var.idle_timeout @@ -32,6 +31,7 @@ resource "aws_lb" "main" { enable_http2 = var.enable_http2 ip_address_type = var.ip_address_type tags = module.labels.tags + drop_invalid_header_fields = true timeouts { create = var.load_balancer_create_timeout diff --git a/variables.tf b/variables.tf index c423e98..7d5594f 100644 --- a/variables.tf +++ b/variables.tf @@ -77,11 +77,6 @@ variable "load_balancer_type" { sensitive = true } -variable "drop_invalid_header_fields" { - type = bool - default = true - description = "Indicates whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type application." -} variable "subnet_mapping" { default = []