mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
New lambda_with_sqs consumer (timeout 900, memory 3008, ephemeral_storage 10240 for multi-GB ZIPs); dedicated retrofit-document-exports bucket (no lifecycle on DATA_BUCKET); IAM to read source buckets + write/presign-read the exports bucket; SES SMTP creds baked from Secrets Manager (no ses:* on the role). Adds ephemeral_storage_size knob to the shared lambda modules (default 512, backward compatible). Wires the queue url+arn into fast-api and orders the CI jobs (ADR-0055). NOTE: terraform is drafted, not validated (no AWS/terraform in the dev env). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
61 lines
1.2 KiB
HCL
61 lines
1.2 KiB
HCL
variable "lambda_name" {
|
|
type = string
|
|
description = "Logical name of the lambda"
|
|
}
|
|
|
|
variable "stage" {
|
|
description = "Deployment stage (e.g. dev, prod)"
|
|
type = string
|
|
}
|
|
|
|
variable "ecr_repo_url" {
|
|
type = string
|
|
description = "ECR repository URL (no tag, no digest)"
|
|
}
|
|
|
|
variable "image_digest" {
|
|
type = string
|
|
description = "Image digest (sha256:...)"
|
|
}
|
|
|
|
variable "reserved_concurrent_executions" {
|
|
type = number
|
|
default = -1
|
|
description = "Reserved concurrency for the Lambda. -1 = unreserved."
|
|
}
|
|
|
|
variable "maximum_concurrency" {
|
|
type = number
|
|
default = 5
|
|
description = "Maximum concurrent Lambda invocations from the SQS trigger."
|
|
}
|
|
|
|
variable "batch_size" {
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "db_host" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "db_name" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "db_port" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "ses_from_address" {
|
|
type = string
|
|
description = "Verified SES sender for Download Package notifications (ADR-0059)."
|
|
default = "noreply@domna.homes"
|
|
}
|
|
|
|
locals {
|
|
image_uri = "${var.ecr_repo_url}@${var.image_digest}"
|
|
}
|