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