Skip to content

Instantly share code, notes, and snippets.

@Vlatombe
Created November 24, 2015 09:40
Show Gist options
  • Save Vlatombe/52c87854ee0cb006de24 to your computer and use it in GitHub Desktop.
Save Vlatombe/52c87854ee0cb006de24 to your computer and use it in GitHub Desktop.
#-*-sh-*-
resource "aws_elb" "controller" {
name = "foo-controller"
subnets = ["None"]
security_groups = ["None"]
tags = {
Name = "foo-controller"
"foo:bar" = "foo"
}
listener {
instance_port = 80
instance_protocol = "tcp"
lb_port = 80
lb_protocol = "tcp"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
target = "TCP:80"
interval = 30
}
instances = []
}
output "default_domain_name" {
value = "${aws_elb.controller.dns_name}.foo.net"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment