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" +}