From 40b7b95e171b4ce9fc1800f038cd4c61c9fc0b65 Mon Sep 17 00:00:00 2001 From: umar11b Date: Mon, 25 Aug 2025 18:14:44 -0400 Subject: [PATCH] Fix Event Source Mapping cleanup query to use FunctionArn --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c2a498b..94f1b46 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -220,7 +220,7 @@ jobs: # Clean up Lambda Event Source Mappings echo "🔍 Checking for existing Lambda Event Source Mappings..." - EVENT_MAPPINGS=$(aws lambda list-event-source-mappings --query 'EventSourceMappings[?contains(FunctionName, `blockchain-core`)].UUID' --output text 2>/dev/null || echo "") + EVENT_MAPPINGS=$(aws lambda list-event-source-mappings --query 'EventSourceMappings[?contains(FunctionArn, `blockchain-core`)].UUID' --output text 2>/dev/null || echo "") if [ -n "$EVENT_MAPPINGS" ] && [ "$EVENT_MAPPINGS" != "null" ]; then echo "Found Event Source Mappings: $EVENT_MAPPINGS" for mapping in $EVENT_MAPPINGS; do