Created
April 29, 2016 13:45
-
-
Save swade1987/d4aaec265eb039dbfb7684e2aeae42b6 to your computer and use it in GitHub Desktop.
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
resource "aws_elb" "bamboo_elb" { | |
name = "bamboo-elb" | |
subnets = ["${split(",", var.public_subnets)}"] | |
security_groups = ["${aws_security_group.bamboo_elb.id}"] | |
cross_zone_load_balancing = true | |
connection_draining = true | |
# Bamboo traffic - HTTP 80 -> 8085 | |
listener { | |
lb_port = 80 | |
lb_protocol = "tcp" | |
instance_port = 8085 | |
instance_protocol = "tcp" | |
} | |
# Bamboo traffic - HTTPS 443 -> 8085 | |
listener { | |
lb_port = 443 | |
lb_protocol = "https" | |
instance_port = 8085 | |
instance_protocol = "http" | |
ssl_certificate_id = "${aws_iam_server_certificate.bamboo_cert.arn}" | |
} | |
health_check { | |
healthy_threshold = 2 | |
unhealthy_threshold = 2 | |
interval = 10 | |
target = "TCP:8085" | |
timeout = 5 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment