providers/aws: Add docs for aws_proxy_protocol_policy

This commit is contained in:
TANABE Ken-ichi 2015-04-30 22:19:57 +09:00
parent 53a7da379c
commit 638ca1e0df
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,55 @@
---
layout: "aws"
page_title: "AWS: aws_proxy_protocol_policy"
sidebar_current: "docs-aws-proxy-protocol-policy"
description: |-
Provides an proxy protocol policy, which allows an ELB to carry a client connection information to a backend.
---
# aws\_proxy\_protocol\_policy
Provides an proxy protocol policy, which allows an ELB to carry a client connection information to a backend.
## Example Usage
```
resource "aws_elb" "lb" {
name = "test-lb"
availability_zones = ["us-east-1a"]
listener {
instance_port = 25
instance_protocol = "tcp"
lb_port = 25
lb_protocol = "tcp"
}
listener {
instance_port = 587
instance_protocol = "tcp"
lb_port = 587
lb_protocol = "tcp"
}
}
resource "aws_proxy_protocol_policy" "smtp" {
load_balancer = "${aws_elb.lb.name}"
instance_ports = ["25", "587"]
}
```
## Argument Reference
The following arguments are supported:
* `load_balancer` - (Required) The load balancer to which the policy
should be attached.
* `instance_ports` - (Required) List of instance ports to which the policy
should be applied. This can be specified if the protocol is SSL or TCP.
## Attributes Reference
The following attributes are exported:
* `id` - The ID of the policy.
* `load_balancer` - The load balancer to which the policy is attached.

View File

@ -76,6 +76,10 @@
<a href="/docs/providers/aws/r/key_pair.html">aws_key_pair</a> <a href="/docs/providers/aws/r/key_pair.html">aws_key_pair</a>
</li> </li>
<li<%= sidebar_current("docs-aws-proxy-protocol-policy") %>>
<a href="/docs/providers/aws/r/proxy_protocol_policy.html">aws_proxy_protocol_policy</a>
</li>
<li<%= sidebar_current("docs-aws-resource-route-table|") %>> <li<%= sidebar_current("docs-aws-resource-route-table|") %>>
<a href="/docs/providers/aws/r/route_table.html">aws_route_table</a> <a href="/docs/providers/aws/r/route_table.html">aws_route_table</a>
</li> </li>