From 638ca1e0df977ae3d9943918ef5842caa3ab02b5 Mon Sep 17 00:00:00 2001 From: TANABE Ken-ichi Date: Thu, 30 Apr 2015 22:19:57 +0900 Subject: [PATCH] providers/aws: Add docs for aws_proxy_protocol_policy --- .../aws/r/proxy_protocol_policy.html.markdown | 55 +++++++++++++++++++ website/source/layouts/aws.erb | 4 ++ 2 files changed, 59 insertions(+) create mode 100644 website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown diff --git a/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown b/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown new file mode 100644 index 000000000..41701c404 --- /dev/null +++ b/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown @@ -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. diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index eeaaaff85..3b115e5bd 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -76,6 +76,10 @@ aws_key_pair + > + aws_proxy_protocol_policy + + > aws_route_table