From ea749ffbbbe6ec24b21cb4fd69cfb7df8d28b85a Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:36:01 +1000 Subject: [PATCH] feat: add support for specifying Lambda function architectures --- lambda.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lambda.tf b/lambda.tf index 79b31cf..d4744c9 100644 --- a/lambda.tf +++ b/lambda.tf @@ -149,6 +149,7 @@ data "archive_file" "lambda_source_code" { # Lambda function resource "aws_lambda_function" "squid" { function_name = "${local.name}-lambda" + architectures = var.architectures role = aws_iam_role.lambda.arn handler = "lambda_function.lambda_handler" runtime = "python3.13" diff --git a/variables.tf b/variables.tf index a448d43..70580c4 100644 --- a/variables.tf +++ b/variables.tf @@ -7,6 +7,12 @@ variable "allowed_domains" { ] } +variable "architectures" { + description = "Lambda function architecture." + type = list(string) + default = ["arm64"] +} + variable "detailed_monitoring" { description = "Whether or not to enable detailed monitoring for the EC2 instance." type = bool