Merge pull request #769 from Hestia-Homes/bug/categorisation-deployment-issues

Set the concurrency and batch size of categorisation lambda
This commit is contained in:
Daniel Roth 2026-03-04 14:54:02 +00:00 committed by GitHub
commit 48ffb773bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 2 deletions

View file

@ -36,6 +36,8 @@ module "lambda" {
# Optional: Set maximum_concurrency to limit concurrent SQS-triggered invocations (2-1000)
maximum_concurrency = var.maximum_concurrency
batch_size = var.batch_size
environment = {
STAGE = var.stage
LOG_LEVEL = "info"

View file

@ -23,6 +23,11 @@ variable "maximum_concurrency" {
description = "Maximum number of concurrent Lambda invocations from SQS (2-1000). null = no limit."
}
variable "batch_size" {
type = number
default = 1
}
locals {
image_uri = "${var.ecr_repo_url}@${var.image_digest}"
}

View file

@ -20,9 +20,9 @@ module "lambda" {
name = "categorisation"
stage = var.stage
image_uri = local.image_uri
maximum_concurrency = var.maximum_concurrency
batch_size = var.batch_size
environment = merge(
{

View file

@ -23,6 +23,11 @@ variable "maximum_concurrency" {
description = "Maximum number of concurrent Lambda invocations from SQS (2-1000). null = no limit."
}
variable "batch_size" {
type = number
default = 2
}
locals {
image_uri = "${var.ecr_repo_url}@${var.image_digest}"
}