Add documentation for elb health_check

This commit is contained in:
Luke Chadwick 2014-07-30 22:14:18 +10:00
parent 0eed0908df
commit dcd6449245
1 changed files with 18 additions and 1 deletions

View File

@ -23,6 +23,14 @@ resource "aws_elb" "bar" {
lb_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
target = "HTTP:8000/"
interval = 30
}
instances = ["${aws_instance.foo.id}"]
}
```
@ -35,6 +43,7 @@ The following arguments are supported:
* `availability_zones` - (Optional) The AZ's to serve traffic in.
* `instances` - (Optional) A list of instance ids to place in the ELB pool.
* `listener` - (Required) A list of listener blocks. Listeners documented below.
* `listener` - (Required) A health_check block. Health Check documented below.
Listeners support the following:
@ -43,6 +52,15 @@ Listeners support the following:
* `lb_port` - (Required) The port to listen on for the load balancer
* `lb_protocol` - (Required) The protocol to listen on.
Health Check supports the following:
* `healthy_threshold` - (Required) The number of checks before the instance is declared healthy.
* `unhealthy_threshold` - (Required) The number of checks before the instance is declared unhealthy.
* `target` - (Required) The target of the check.
* `interval` - (Required) The interval between checks.
* `timeout` - (Required) The length of time before the check times out.
## Attributes Reference
The following attributes are exported:
@ -51,4 +69,3 @@ The following attributes are exported:
* `name` - The name of the ELB
* `dns_name` - The DNS name of the ELB
* `instances` - The list of instances in the ELB