From b55b601c15627e76a85be47214fdf6b28c0adcf6 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 12 Mar 2026 11:45:25 +0000 Subject: [PATCH] ignore infrastucture file when zipping python --- .../modules/lambda_with_api_gateway/variables.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf b/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf index 0b1dfe71..d0d2b933 100644 --- a/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf +++ b/infrastructure/terraform/modules/lambda_with_api_gateway/variables.tf @@ -6,7 +6,13 @@ variable "runtime" { type = string } variable "zip_excludes" { type = list(string) - default = ["**/__pycache__/**", "**/*.pyc", "**/.pytest_cache/**", "**/tests/**"] + default = [ + "**/__pycache__/**", + "**/*.pyc", + "**/.pytest_cache/**", + "**/tests/**", + "**/infrastructure/**" + ] } variable "timeout" {