Skip to content

Commit a3a435f

Browse files
committed
wip
1 parent dd3b207 commit a3a435f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

terraform/package_lambda.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ set -e
33

44
echo "🚀 Packaging Lambda1..."
55

6-
PROJECT_DIR="${1:-.}" # Default to current dir if not provided
6+
PROJECT="${1:-.}"
7+
PROJECT_DIR=$(realpath "$PROJECT") # Default to current dir if not provided
78
BUILD_DIR="${2:-build}" # Default build directory if not provided
89
ZIP_FILE="${3:-lambda_package.zip}" # Default zip file name if not provided
910
echo "Project directory: $PROJECT_DIR"

terraform/redis_sync_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "null_resource" "chmod_package_lambda" {
3434

3535
resource "null_resource" "package_lambda" {
3636
provisioner "local-exec" {
37-
command = "chmod +x ${path.module}/package_lambda.sh && ${path.module}/package_lambda.sh ${local.redis_sync_dir} ${path.module}/build"
37+
command = "chmod +x ${path.module}/package_lambda.sh && ${path.module}/package_lambda.sh ${local.redis_sync_dir}"
3838
}
3939
depends_on = [null_resource.chmod_package_lambda]
4040
triggers = {

0 commit comments

Comments
 (0)