Files
opentf/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.3 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_proxy_protocol_policy docs-aws-resource-proxy-protocol-policy Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend.

aws_proxy_protocol_policy

Provides a 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.