From fd1b4751f444dec7078104a12f38b0dd1dcd35b9 Mon Sep 17 00:00:00 2001 From: Roman Volykh Date: Fri, 19 Dec 2025 12:41:50 +0200 Subject: [PATCH] fix: Set Lambda to use unreserved capacity --- infra/cmd_poweron.tf | 2 +- infra/main.tf | 2 +- infra/observability.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/cmd_poweron.tf b/infra/cmd_poweron.tf index 7b166e6..78e186e 100644 --- a/infra/cmd_poweron.tf +++ b/infra/cmd_poweron.tf @@ -10,7 +10,7 @@ module "telegram_bot_cmd_poweron" { source = "./modules/handler" function_name = "telegram-bot-cmd-poweron" - reserved_concurrent_executions = 3 + reserved_concurrent_executions = -1 source_path = "${path.root}/../apps/poweron" sqs_batch_size = 10 diff --git a/infra/main.tf b/infra/main.tf index eb12aa3..944dc0c 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -43,7 +43,7 @@ module "telegram_bot_handler_mux" { source = "./modules/handler" function_name = "telegram-bot-mux" - reserved_concurrent_executions = 3 + reserved_concurrent_executions = -1 source_path = "${path.root}/../apps/mux" sqs_batch_size = 10 diff --git a/infra/observability.tf b/infra/observability.tf index d0710fb..4e9c97c 100644 --- a/infra/observability.tf +++ b/infra/observability.tf @@ -36,7 +36,7 @@ module "telegram_bot_alerting" { source = "./modules/alerting" name = "telegram-bot-alerting" - reserved_concurrent_executions = 2 + reserved_concurrent_executions = -1 emails = var.alerting_emails telegram_chat_id = var.alerting_telegram_chat_id ssm_param_telegram_api_token = module.telegram_bot_api_token.name