Skip to content

Commit f286a99

Browse files
committed
debugs
1 parent f545dbc commit f286a99

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

terraform/id_sync_lambda.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ output "debug_file_listing" {
3737
}
3838
}
3939

40+
resource "null_resource" "debug_build_context" {
41+
provisioner "local-exec" {
42+
command = <<-EOT
43+
echo "=== HOST SYSTEM PATHS ==="
44+
echo "Terraform execution directory: $(pwd)"
45+
echo "Host build context: ${local.lambdas_dir}"
46+
echo "Host Dockerfile location: ${local.id_sync_lambda_dir}/Dockerfile"
47+
echo ""
48+
echo "Docker build command that will be executed:"
49+
echo "docker build -f id_sync/Dockerfile ${local.lambdas_dir}"
50+
echo ""
51+
echo "=== HOST BUILD CONTEXT CONTENTS ==="
52+
echo "What Docker can see from host:"
53+
ls -la "${local.lambdas_dir}/"
54+
EOT
55+
}
56+
}
57+
4058
# Reference the existing SQS queue
4159
data "aws_sqs_queue" "existing_sqs_queue" {
4260
name = "id_sync_test_queue"
@@ -77,6 +95,7 @@ module "id_sync_docker_image" {
7795
platform = "linux/amd64"
7896
use_image_tag = false
7997
source_path = local.lambdas_dir # parent lambdas directory
98+
docker_file_path = "id_sync/Dockerfile" # Add this line
8099
triggers = {
81100
dir_sha = local.combined_sha # Changed to combined SHA
82101
}

0 commit comments

Comments
 (0)