From 7544700618d6a64e55d3414aa1522295f75d8aca Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Wed, 18 Mar 2026 14:13:38 +0000 Subject: [PATCH] always run pip install --- .../terraform/modules/lambda_with_api_gateway/main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infrastructure/terraform/modules/lambda_with_api_gateway/main.tf b/infrastructure/terraform/modules/lambda_with_api_gateway/main.tf index bef4a16c..d2a5b0b2 100644 --- a/infrastructure/terraform/modules/lambda_with_api_gateway/main.tf +++ b/infrastructure/terraform/modules/lambda_with_api_gateway/main.tf @@ -20,11 +20,14 @@ resource "aws_cloudwatch_log_group" "api_logs" { resource "null_resource" "pip_install" { count = var.requirements_file != null ? 1 : 0 + triggers = { + always_run = timestamp() + } + provisioner "local-exec" { command = "pip install -r ${var.requirements_file} -t ${var.source_dir} --platform manylinux2014_x86_64 --implementation cp --python-version 3.11 --only-binary=:all: --upgrade" } } - ############################################ # Zip the source code ############################################