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>
21 lines
428 B
HCL
21 lines
428 B
HCL
resource "aws_lambda_function" "this" {
|
|
function_name = var.name
|
|
role = var.role_arn
|
|
|
|
package_type = "Image"
|
|
image_uri = var.image_uri
|
|
|
|
timeout = var.timeout
|
|
memory_size = var.memory_size
|
|
publish = true
|
|
|
|
reserved_concurrent_executions = var.reserved_concurrent_executions
|
|
|
|
ephemeral_storage {
|
|
size = var.ephemeral_storage_size
|
|
}
|
|
|
|
environment {
|
|
variables = var.environment
|
|
}
|
|
}
|