From 48f4745047790f21c75e0f90baa4a82c981ba0e2 Mon Sep 17 00:00:00 2001 From: Harry Reeder Date: Tue, 24 Jun 2025 16:00:34 +0100 Subject: [PATCH] fix: Support variable architecture --- main.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 2e1f28b..6e27a47 100644 --- a/main.tf +++ b/main.tf @@ -23,7 +23,7 @@ module "function" { timeout = 300 # 5 minutes build_in_docker = true - architectures = ["arm64"] + architectures = [var.architecture] source_path = [{ path = "${path.module}/src" diff --git a/variables.tf b/variables.tf index 4960744..dd37a7d 100644 --- a/variables.tf +++ b/variables.tf @@ -27,3 +27,9 @@ variable "schedule_expression_timezone" { description = "Timezone for the schedule expression" default = "UTC" } + +variable "architecture" { + type = string + description = "CPU Architecture to Build & Deploy" + default = "x86_64" +}