fix: Support variable architecture

This commit is contained in:
Harry Reeder
2025-06-24 16:00:34 +01:00
parent 19872d51cb
commit 48f4745047
2 changed files with 7 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ module "function" {
timeout = 300 # 5 minutes timeout = 300 # 5 minutes
build_in_docker = true build_in_docker = true
architectures = ["arm64"] architectures = [var.architecture]
source_path = [{ source_path = [{
path = "${path.module}/src" path = "${path.module}/src"

View File

@@ -27,3 +27,9 @@ variable "schedule_expression_timezone" {
description = "Timezone for the schedule expression" description = "Timezone for the schedule expression"
default = "UTC" default = "UTC"
} }
variable "architecture" {
type = string
description = "CPU Architecture to Build & Deploy"
default = "x86_64"
}