From 57b44c63b3118d66062d2fc83c682e88c751d9f8 Mon Sep 17 00:00:00 2001 From: Jaime Hablutzel Date: Mon, 31 Mar 2025 14:10:44 -0500 Subject: [PATCH 1/2] Increase coordinator Lambda default memory. --- open-tofu/main.tf.template | 1 + open-tofu/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/open-tofu/main.tf.template b/open-tofu/main.tf.template index dc694c2..7e209d0 100644 --- a/open-tofu/main.tf.template +++ b/open-tofu/main.tf.template @@ -73,6 +73,7 @@ resource "aws_lambda_function" "mpic_coordinator_lambda" { source_code_hash = filebase64sha256("../{{source-path}}/mpic_coordinator_lambda/mpic_coordinator_lambda.zip") runtime = "python3.11" architectures = ["arm64"] + memory_size = var.coordinator_memory_size timeout = 60 layers = [ aws_lambda_layer_version.python3_open_mpic_layer.arn, diff --git a/open-tofu/variables.tf b/open-tofu/variables.tf index 05a1c85..947fe72 100644 --- a/open-tofu/variables.tf +++ b/open-tofu/variables.tf @@ -3,3 +3,9 @@ variable "dnssec_enabled" { description = "Enable DNSSEC" default = true } + +variable "coordinator_memory_size" { + type = number + description = "MPIC Coordinator Lambda Function Memory" + default = 256 +} From 105936ac945768dbe1bdcc984539af3bc519eda7 Mon Sep 17 00:00:00 2001 From: Henry Birge-Lee Date: Mon, 31 Mar 2025 20:07:52 -0400 Subject: [PATCH 2/2] increased memory more. --- open-tofu/variables.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/open-tofu/variables.tf b/open-tofu/variables.tf index 947fe72..f91a357 100644 --- a/open-tofu/variables.tf +++ b/open-tofu/variables.tf @@ -7,5 +7,6 @@ variable "dnssec_enabled" { variable "coordinator_memory_size" { type = number description = "MPIC Coordinator Lambda Function Memory" - default = 256 + default = 512 + }