Add website docs.

This commit is contained in:
Trevor Pounds 2015-11-03 23:15:02 -08:00 committed by clint shryock
parent 5f7254eb1a
commit 02ee437328
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,13 @@ resource "aws_elb" "bar" {
name = "foobar-terraform-elb"
availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"]
access_logs {
enabled = true
bucket = "foo"
bucket_prefix = "bar"
interval = 60
}
listener {
instance_port = 8000
instance_protocol = "http"
@ -58,6 +65,7 @@ resource "aws_elb" "bar" {
The following arguments are supported:
* `name` - (Optional) The name of the ELB. By default generated by terraform.
* `access_logs` - (Optional) An Access Logs block. Access Logs documented below.
* `availability_zones` - (Required for an EC2-classic ELB) The AZ's to serve traffic in.
* `security_groups` - (Optional) A list of security group IDs to assign to the ELB.
* `subnets` - (Required for a VPC ELB) A list of subnet IDs to attach to the ELB.
@ -74,6 +82,13 @@ The following arguments are supported:
Exactly one of `availability_zones` or `subnets` must be specified: this
determines if the ELB exists in a VPC or in EC2-classic.
Access Logs support the following:
* `bucket` - (Required) The S3 bucket name to store the logs in.
* `bucket_prefix` - (Optional) The S3 bucket prefix. Logs are stored in the root if not configured.
* `enabled` - (Optional) Whether capturing access logs is enabled. Default: true.
* `interval` - (Optional) The publishing interval in minutes. Default: 60 minutes.
Listeners support the following:
* `instance_port` - (Required) The port on the instance to route to