Skip to content

Commit 147521a

Browse files
committed
debug
1 parent c0ac942 commit 147521a

File tree

1 file changed

+3
-53
lines changed

1 file changed

+3
-53
lines changed

terraform/id_sync_lambda.tf

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -32,60 +32,10 @@ resource "null_resource" "find_dockerfile" {
3232
command = <<-EOT
3333
echo "=== FINDING DOCKERFILE ==="
3434
35-
# ✅ Use simple variable assignments instead of arrays
36-
PATH1="${path.root}/../lambdas/id_sync.Dockerfile"
37-
PATH2="${path.root}/../../lambdas/id_sync.Dockerfile"
38-
PATH3="${path.root}/../id_sync.Dockerfile"
39-
PATH4="${path.root}/id_sync.Dockerfile"
40-
41-
FOUND_PATH=""
42-
43-
echo "Checking: $PATH1"
44-
if [ -f "$PATH1" ]; then
45-
echo "✅ Found Dockerfile at: $PATH1"
46-
FOUND_PATH="$PATH1"
47-
else
48-
echo "❌ Not found at: $PATH1"
49-
fi
50-
51-
if [ -z "$FOUND_PATH" ]; then
52-
echo "Checking: $PATH2"
53-
if [ -f "$PATH2" ]; then
54-
echo "✅ Found Dockerfile at: $PATH2"
55-
FOUND_PATH="$PATH2"
56-
else
57-
echo "❌ Not found at: $PATH2"
58-
fi
59-
fi
60-
61-
if [ -z "$FOUND_PATH" ]; then
62-
echo "Checking: $PATH3"
63-
if [ -f "$PATH3" ]; then
64-
echo "✅ Found Dockerfile at: $PATH3"
65-
FOUND_PATH="$PATH3"
66-
else
67-
echo "❌ Not found at: $PATH3"
68-
fi
69-
fi
70-
71-
if [ -z "$FOUND_PATH" ]; then
72-
echo "Checking: $PATH4"
73-
if [ -f "$PATH4" ]; then
74-
echo "✅ Found Dockerfile at: $PATH4"
75-
FOUND_PATH="$PATH4"
76-
else
77-
echo "❌ Not found at: $PATH4"
78-
fi
79-
fi
80-
81-
if [ -z "$FOUND_PATH" ]; then
82-
echo "ERROR: Dockerfile not found in any expected location!"
83-
echo "Current structure:"
84-
find ${path.root}/.. -name "*.Dockerfile" -type f 2>/dev/null || echo "No Dockerfiles found"
85-
exit 1
86-
fi
35+
ls -la "${local.lambdas_dir}/" || echo "lambdas directory not found"
36+
ls -la .. || echo "parent directory not found"
37+
ls -la ${path.root}/.. || echo "grandparent directory not found"
8738
88-
echo "=== DOCKERFILE FOUND AT: $FOUND_PATH ==="
8939
EOT
9040
}
9141
}

0 commit comments

Comments
 (0)