Model/deployment/terraform/lambda/sharepoint_renamer/variables.tf
Daniel Roth 9870005230 Ship the Renamer image and infrastructure with database access 🟩
The task lane pulls the task domain types, both task repositories and four
Postgres modules into the image, plus SQLAlchemy, SQLModel and a driver.
Terraform gains the DB credentials block and five Postgres env vars; the
deploy job gains the three DB secrets the shared workflow already declares.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-29 09:11:41 +00:00

79 lines
1.4 KiB
HCL

variable "lambda_name" {
type = string
description = "sharepoint_renamer"
}
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 "timeout" {
type = number
default = 900
description = "Lambda timeout in seconds."
}
variable "reserved_concurrent_executions" {
type = number
default = 1
description = <<-EOT
Prevent parallel renames causing race conditions on SharePoint. Since the
Renamer joined the app-owned-task lane this also caps its DB connections at
one a second lever hanging off the same number.
EOT
}
variable "batch_size" {
type = number
default = 1
}
variable "sharepoint_client_id" {
type = string
sensitive = true
}
variable "sharepoint_client_secret" {
type = string
sensitive = true
}
variable "sharepoint_tenant_id" {
type = string
sensitive = true
}
variable "social_housing_wave_3_sharepoint_id" {
type = string
sensitive = true
}
variable "db_host" {
type = string
sensitive = true
}
variable "db_name" {
type = string
sensitive = true
}
variable "db_port" {
type = string
sensitive = true
}
locals {
image_uri = "${var.ecr_repo_url}@${var.image_digest}"
}