From 30f8fd738a06a5280d78ce409a89c841584f75cb Mon Sep 17 00:00:00 2001 From: Christopher Tiwald Date: Sun, 26 Apr 2015 18:05:11 -0400 Subject: [PATCH] aws: Add docs for lb_cookie_stickiness_policy. --- .../lb_cookie_stickiness_policy.html.markdown | 56 +++++++++++++++++++ website/source/layouts/aws.erb | 4 ++ 2 files changed, 60 insertions(+) create mode 100644 website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown diff --git a/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown b/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown new file mode 100644 index 000000000..d728bc2ed --- /dev/null +++ b/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown @@ -0,0 +1,56 @@ +--- +layout: "aws" +page_title: "AWS: aws_lb_cookie_stickiness_policy" +sidebar_current: "docs-aws-lb-cookie-stickiness-policy" +description: |- + Provides a load balancer cookie stickiness policy, which allows an ELB to control the sticky session lifetime of the browser. +--- + +# 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}" + lb_port = 80 + cookie_expiration_period = 600 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the stickiness policy. +* `load_balancer` - (Required) The load balancer to which the policy + should be attached. +* `lb_port` - (Required) The load balancer port to which the policy + should be applied. This must be an active listener on the load +balancer. +* `cookie_expiration_period` - (Optional) The time period after which + the session cookie should be considered stale, expressed in seconds. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The ID of the policy. +* `name` - The name of the stickiness policy. +* `load_balancer` - The load balancer to which the policy is attached. +* `lb_port` - The load balancer port to which the policy is applied. +* `cookie_expiration_period` - The time period after which the session cookie is considered stale, expressed in seconds. diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index 812f13506..13af8f27f 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -53,6 +53,10 @@ aws_launch_configuration + > + aws_lb_cookie_stickiness_policy + + > aws_main_route_table_association