Skip to content

Commit c44632c

Browse files
committed
betterstack-logs: expose Lambda timeout/mem vars
1 parent fc0c953 commit c44632c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

modules/betterstack-log-forwarder/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module "log_forwarder" {
2-
source = "git::https://github.com/deploymode/terraform-betterstack-cloudwatch-logs.git?ref=tags/0.1.1"
2+
source = "git::https://github.com/deploymode/terraform-betterstack-cloudwatch-logs.git?ref=tags/0.1.2"
33

44
better_stack_token = var.better_stack_token
55
better_stack_ingest_host = var.better_stack_ingest_host
66

7+
timeout = var.lambda_timeout
8+
memory_size = var.lambda_memory_size
9+
710
log_group_names = var.log_group_names
811

912
context = module.this.context

modules/betterstack-log-forwarder/variables.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,16 @@ variable "better_stack_token" {
1212
variable "better_stack_ingest_host" {
1313
description = "BetterStack ingest host"
1414
type = string
15-
}
15+
}
16+
17+
variable "lambda_timeout" {
18+
description = "Lambda function timeout in seconds"
19+
type = number
20+
default = 3
21+
}
22+
23+
variable "lambda_memory_size" {
24+
description = "Lambda function memory size in MB"
25+
type = number
26+
default = 128
27+
}

0 commit comments

Comments
 (0)