FEATURES PRICING ABOUT DOCS LOGIN

aws_lb_cookie_stickiness_policy

Provides a load balancer cookie stickiness policy, which allows an ELB to control the sticky session lifetime of the browser.

Example Usage

resource "aws_elb" "lb" {
    name = "test-lb"
	  availability_zones = ["us-east-1a"]
	  listener {
	      instance_port = 8000
		    instance_protocol = "http"
		    lb_port = 80
		    lb_protocol = "http"
	  }
}

resource "aws_lb_cookie_stickiness_policy" "foo" {
	  name = "foo-policy"
	  load_balancer = "${aws_elb.lb.id}"
	  lb_port = 80
	  cookie_expiration_period = 600
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO