From aed39ab15d7f3738314e2bb936e1822013a7cfd0 Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Wed, 17 May 2017 16:40:58 +0200 Subject: [PATCH] modules/aws: configure ELB idle timeout Fixes #390 --- modules/aws/master-asg/elb.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/aws/master-asg/elb.tf b/modules/aws/master-asg/elb.tf index 8bdaa4ff45..5b3c4f27af 100644 --- a/modules/aws/master-asg/elb.tf +++ b/modules/aws/master-asg/elb.tf @@ -4,6 +4,8 @@ resource "aws_elb" "api-internal" { internal = true security_groups = ["${var.api_sg_ids}"] + idle_timeout = 3600 + listener { instance_port = 443 instance_protocol = "tcp" @@ -44,6 +46,8 @@ resource "aws_elb" "api-external" { internal = false security_groups = ["${var.api_sg_ids}"] + idle_timeout = 3600 + listener { instance_port = 22 instance_protocol = "tcp" @@ -91,6 +95,8 @@ resource "aws_elb" "console" { internal = "${var.public_vpc ? false : true}" security_groups = ["${var.console_sg_ids}"] + idle_timeout = 3600 + listener { instance_port = 32001 instance_protocol = "tcp"