github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_proxy_protocol_policy" 4 sidebar_current: "docs-aws-resource-proxy-protocol-policy" 5 description: |- 6 Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend. 7 --- 8 9 # aws\_proxy\_protocol\_policy 10 11 Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_elb" "lb" { 17 name = "test-lb" 18 availability_zones = ["us-east-1a"] 19 20 listener { 21 instance_port = 25 22 instance_protocol = "tcp" 23 lb_port = 25 24 lb_protocol = "tcp" 25 } 26 27 listener { 28 instance_port = 587 29 instance_protocol = "tcp" 30 lb_port = 587 31 lb_protocol = "tcp" 32 } 33 } 34 35 resource "aws_proxy_protocol_policy" "smtp" { 36 load_balancer = "${aws_elb.lb.name}" 37 instance_ports = ["25", "587"] 38 } 39 ``` 40 41 ## Argument Reference 42 43 The following arguments are supported: 44 45 * `load_balancer` - (Required) The load balancer to which the policy 46 should be attached. 47 * `instance_ports` - (Required) List of instance ports to which the policy 48 should be applied. This can be specified if the protocol is SSL or TCP. 49 50 ## Attributes Reference 51 52 The following attributes are exported: 53 54 * `id` - The ID of the policy. 55 * `load_balancer` - The load balancer to which the policy is attached.