From 279f0b44069858408a45bf969c5d87099d7fd6d0 Mon Sep 17 00:00:00 2001 From: Anmol Nagpal Date: Fri, 3 Jul 2020 18:43:15 +0530 Subject: [PATCH] update lambda script --- README.md | 1 + main.tf | 2 +- variables.tf | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f276da4..1dcccfe 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ module "cloudtrail-slack-notification" { | security\_group\_ids | Security Group IDs. | list | `` | no | | slack\_variables | A map that defines environment variables for the Lambda function. | map | `` | no | | subnet\_ids | Subnet IDs. | list | `` | no | +| timeout | timeout. | number | `"30"` | no | | variables | A map that defines environment variables for the Lambda function. | map | `` | no | ## Outputs diff --git a/main.tf b/main.tf index 9985859..2119c7c 100644 --- a/main.tf +++ b/main.tf @@ -53,7 +53,7 @@ module "site-monitor" { "ec2:DescribeNetworkInterfaces", "ec2:DeleteNetworkInterface" ] - timeout = 30 + timeout = var.timeout names = [ "python_layer" diff --git a/variables.tf b/variables.tf index a32780f..8b091ff 100644 --- a/variables.tf +++ b/variables.tf @@ -64,4 +64,10 @@ variable "security_group_ids" { type = list default = [] description = "Security Group IDs." +} + +variable "timeout" { + type = number + default = 30 + description = "timeout." } \ No newline at end of file