Skip to content

Commit

Permalink
Drop local aws-lambda-rie
Browse files Browse the repository at this point in the history
Do not include the static binary build from AWS for
local testing of lambda functions. This needs proper
building of the aws-lambda-rie package in obs
  • Loading branch information
schaefi committed Jan 20, 2025
1 parent 4f5ed2f commit 62ce8ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion aws/container/sle15/root/lambda-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#!/bin/bash

local_runtime_interface=/usr/local/bin/aws-lambda-rie

if [ $# -ne 1 ]; then
echo "entrypoint requires the handler name to be the first argument" 1>&2
exit 142
fi

if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
exec /usr/local/bin/aws-lambda-rie /usr/bin/python3 -m awslambdaric "$1"
if [ -e ${local_runtime_interface} ];then
exec /usr/local/bin/aws-lambda-rie /usr/bin/python3 -m awslambdaric "$1"
else
echo "No local aws-lambda-rie interface found"
exit 143
fi
else
exec /usr/bin/python3 -m awslambdaric "$1"
fi
Binary file not shown.

0 comments on commit 62ce8ea

Please sign in to comment.