Skip to content

Commit

Permalink
Add custom timeout and memory_size
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmatte committed Apr 1, 2021
1 parent 45a1018 commit 42bbeb1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack-notifier",
"version": "v1.0.2",
"version": "v1.0.3",
"description": "",
"scripts": {
"test": "mocha -r ts-node/register test/**/*.spec.ts",
Expand Down
2 changes: 2 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ resource "aws_lambda_function" "lambda" {
function_name = var.lambda_name
role = var.role_arn
handler = "index.handler"
memory_size = var.memory_size
timeout = var.timeout

source_code_hash = filebase64sha256(local.slack_lambda_zip)

Expand Down
12 changes: 12 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,15 @@ variable "role_arn" {
description = "Lambda IAM role"
type = string
}

variable "memory_size" {
description = "Memory size of the lambda"
type = number
default = 128
}

variable "timeout" {
description = "Timeout value for the lambda"
type = number
default = 6
}

0 comments on commit 42bbeb1

Please sign in to comment.