From 0a964150268be3868c50b2b4a4ccb6b059741a5c Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Wed, 17 May 2017 17:16:04 +0200 Subject: [PATCH] modules/aws: configure ELB idle timeout (#725) 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 8bdaa4ff459..5b3c4f27af7 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"