-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelb.tf
36 lines (26 loc) · 844 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
##############################################################################################
### Elastic Load Balancer
##############################################################################################
resource "aws_elb" "magento" {
name = "magento-elb"
security_groups = [
aws_security_group.elb.id,
]
availability_zones = data.aws_availability_zones.all.names # ALL --> Multi AZ!
health_check {
healthy_threshold = 2
unhealthy_threshold = 10
timeout = 5
interval = 30
target = "TCP:80"
}
listener {
lb_port = 80 # Currently we stick with HTTP. I'll add full SSL later
lb_protocol = "http"
instance_port = 80
instance_protocol = "http"
}
tags = {
Terraform-Magento = "staging"
}
}