-
Notifications
You must be signed in to change notification settings - Fork 0
/
elb.tf
40 lines (36 loc) · 1.17 KB
/
elb.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Create a new load balancer
resource "aws_elb" "weblb" {
name = "weblb-terraform-elb"
listener {
instance_port = 8000
instance_protocol = "http"
lb_port = 80
lb_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
target = "HTTP:8000/"
interval = 30
}
subnets = [aws_subnet.web_subnet.id]
security_groups = [aws_security_group.web-node.id]
instances = [aws_instance.web_host.id]
cross_zone_load_balancing = true
idle_timeout = 400
connection_draining = true
connection_draining_timeout = 400
tags = merge({
Name = "foobar-terraform-elb"
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/elb.tf"
git_last_modified_at = "2020-06-16 14:46:24"
git_last_modified_by = "[email protected]"
git_modifiers = "nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "b4a83ce9-9a45-43b4-b6d9-1783c282f702"
})
}