-
Notifications
You must be signed in to change notification settings - Fork 0
/
elb.tf
38 lines (32 loc) · 795 Bytes
/
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
/*
# Load Balancer
#
resource "aws_elb" "scalr_lb" {
name = "${var.name_prefix}-scalr-lb"
subnets = [var.subnet]
security_groups = [ data.aws_security_group.default_sg.id, aws_security_group.scalr_sg.id]
instances = [ aws_instance.iacp_server.id ]
listener {
instance_port = 8080
instance_protocol = "http"
lb_port = 8080
lb_protocol = "http"
}
listener {
instance_port = 443
instance_protocol = "http"
lb_port = 443
lb_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
target = "TCP:8080"
interval = 30
}
tags = {
Name = "${var.name_prefix}-scalr-elb"
}
}
*/