We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc7dfe commit 4e88c54Copy full SHA for 4e88c54
.github/workflows/deploy-examples.yml
@@ -119,6 +119,15 @@ jobs:
119
echo "All Response Headers:"
120
jq -r '.ResponseMetadata.HTTPHeaders' /tmp/invoke_response.json || echo "No HTTPHeaders found"
121
122
+ # Check for function errors
123
+ FUNCTION_ERROR=$(jq -r '.FunctionError // empty' /tmp/invoke_response.json)
124
+ if [ -n "$FUNCTION_ERROR" ]; then
125
+ echo "ERROR: Lambda function failed with error: $FUNCTION_ERROR"
126
+ echo "Function response:"
127
+ cat /tmp/response.json
128
+ exit 1
129
+ fi
130
+
131
# Extract invocation ID from response headers
132
INVOCATION_ID=$(jq -r '.ResponseMetadata.HTTPHeaders["x-amzn-invocation-id"] // empty' /tmp/invoke_response.json)
133
if [ -n "$INVOCATION_ID" ]; then
0 commit comments