Last active
August 10, 2021 18:05
-
-
Save oxr463/01f13f9e9079e4743962a982966428b9 to your computer and use it in GitHub Desktop.
Elastic Load Balancer Terraform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: 0BSD | |
resource "aws_elb" "lramage-elb-001" { | |
availability_zones = [ | |
"us-east-1a", | |
"us-east-1b" | |
] | |
connection_draining = false | |
connection_draining_timeout = 300 | |
cross_zone_load_balancing = false | |
idle_timeout = 60 | |
internal = false | |
name = "lramage-elb-001" | |
security_groups = [] | |
subnets = [] | |
tags = { | |
"kubernetes.io/cluster/lramage-eks-10" = "owned" | |
"kubernetes.io/service-name" = "ingress-nginx/ingress-nginx-controller" | |
} | |
tags_all = { | |
"kubernetes.io/cluster/lramage-eks-10" = "owned" | |
"kubernetes.io/service-name" = "ingress-nginx/ingress-nginx-controller" | |
} | |
health_check { | |
healthy_threshold = 2 | |
interval = 10 | |
target = "TCP:30770" | |
timeout = 5 | |
unhealthy_threshold = 6 | |
} | |
# Changed from 443 -> 4432 | |
listener { | |
instance_port = 30422 | |
instance_protocol = "tcp" | |
lb_port = 4432 | |
lb_protocol = "tcp" | |
} | |
listener { | |
instance_port = 30770 | |
instance_protocol = "http" | |
lb_port = 443 | |
lb_protocol = "https" | |
ssl_certificate_id = "" # Add ARN here | |
} | |
listener { | |
instance_port = 30770 | |
instance_protocol = "tcp" | |
lb_port = 80 | |
lb_protocol = "tcp" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment