Skip to content

Commit 42bbeb1

Browse files
committed
Add custom timeout and memory_size
1 parent 45a1018 commit 42bbeb1

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slack-notifier",
3-
"version": "v1.0.2",
3+
"version": "v1.0.3",
44
"description": "",
55
"scripts": {
66
"test": "mocha -r ts-node/register test/**/*.spec.ts",

terraform/main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ resource "aws_lambda_function" "lambda" {
1717
function_name = var.lambda_name
1818
role = var.role_arn
1919
handler = "index.handler"
20+
memory_size = var.memory_size
21+
timeout = var.timeout
2022

2123
source_code_hash = filebase64sha256(local.slack_lambda_zip)
2224

terraform/variables.tf

+12
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ variable "role_arn" {
7575
description = "Lambda IAM role"
7676
type = string
7777
}
78+
79+
variable "memory_size" {
80+
description = "Memory size of the lambda"
81+
type = number
82+
default = 128
83+
}
84+
85+
variable "timeout" {
86+
description = "Timeout value for the lambda"
87+
type = number
88+
default = 6
89+
}

0 commit comments

Comments
 (0)