From e8c839f3e494f24b736d527e43167eb10647c60a Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Wed, 11 Mar 2026 12:02:22 +0000 Subject: [PATCH] no single line variables with defaults. and typos --- .../lambda/categorisation/outputs.tf | 2 +- .../terraform/lambda/engine/outputs.tf | 2 +- .../modules/lambda_service_zip/variables.tf | 15 ++++++++-- .../lambda_with_api_gateway/variables.tf | 30 +++++++++++++++---- 4 files changed, 38 insertions(+), 11 deletions(-) diff --git a/infrastructure/terraform/lambda/categorisation/outputs.tf b/infrastructure/terraform/lambda/categorisation/outputs.tf index 06e06623..8e33b8e0 100644 --- a/infrastructure/terraform/lambda/categorisation/outputs.tf +++ b/infrastructure/terraform/lambda/categorisation/outputs.tf @@ -4,6 +4,6 @@ output "categorisation_queue_url" { } output "categorisation_queue_arn" { - value = module.lambda.queu_arn + value = module.lambda.queue_arn description = "ARN of the Categorisation SQS queue" } \ No newline at end of file diff --git a/infrastructure/terraform/lambda/engine/outputs.tf b/infrastructure/terraform/lambda/engine/outputs.tf index d12e0684..c59e0809 100644 --- a/infrastructure/terraform/lambda/engine/outputs.tf +++ b/infrastructure/terraform/lambda/engine/outputs.tf @@ -4,6 +4,6 @@ output "ara_engine_queue_url" { } output "ara_engine_queue_arn" { - value = module.lambda.queu_arn + value = module.lambda.queue_arn description = "ARN of the Engine SQS queue" } \ No newline at end of file diff --git a/infrastructure/terraform/modules/lambda_service_zip/variables.tf b/infrastructure/terraform/modules/lambda_service_zip/variables.tf index 3a243c49..68a35370 100644 --- a/infrastructure/terraform/modules/lambda_service_zip/variables.tf +++ b/infrastructure/terraform/modules/lambda_service_zip/variables.tf @@ -4,6 +4,15 @@ variable "filename" { type = string } variable "source_code_hash" { type = string } variable "handler" { type = string } variable "runtime" { type = string } -variable "timeout" { type = number default = 30 } -variable "memory_size" { type = number default = 128 } -variable "environment" { type = map(string) default = {} } \ No newline at end of file +variable "timeout" { + type = number + default = 30 +} +variable "memory_size" { + type = number + default = 128 +} +variable "environment" { + type = map(string) + default = {} +} \ No newline at end of file diff --git a/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf b/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf index 1a08ff2e..b32380de 100644 --- a/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf +++ b/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf @@ -9,10 +9,28 @@ variable "zip_excludes" { default = ["**/__pycache__/**", "**/*.pyc", "**/.pytest_cache/**"] } -variable "timeout" { type = number default = 600 } -variable "memory_size" { type = number default = 512 } -variable "environment" { type = map(string) default = {} } +variable "timeout" { + type = number + default = 600 +} +variable "memory_size" { + type = number + default = 512 +} +variable "environment" { + type = map(string) + default = {} +} -variable "domain_name" { type = string default = null } -variable "certificate_arn" { type = string default = null } -variable "route53_zone_id" { type = string default = null } \ No newline at end of file +variable "domain_name" { + type = string + default = null +} +variable "certificate_arn" { + type = string + default = null +} +variable "route53_zone_id" { + type = string + default = null +} \ No newline at end of file