⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Make the library usable for local testing without Docker on a Mac#199

Open
bmoffatt wants to merge 3 commits intoaws:mainfrom
bmoffatt:main
Open

Make the library usable for local testing without Docker on a Mac#199
bmoffatt wants to merge 3 commits intoaws:mainfrom
bmoffatt:main

Conversation

@bmoffatt
Copy link

@bmoffatt bmoffatt commented Feb 6, 2026

Issue #, if available:

Description of changes:

I don't always love using Docker to do local invoke testing, preferring to use a locally built version of https://github.com/aws/aws-lambda-runtime-interface-emulator.

However, this workflow doesn't work for python, as awslambdaric doesn't compile it's native dependencies, instead logging that aws-lambda-cpp doesn't compile on Macs. However, that set of issues should be resolved now after changes like awslabs/aws-lambda-cpp#154 present in newer releases.

This change

  • updates the version of aws-lambda-cpp to 0.2.10 from 0.2.6
  • removes patch files that have since been upstreamed
  • re-works patch files that didn't cleanly re-apply
  • allows setup.py to run scripts/preinstall.sh on macOS
  • skips the static libcurl build on macOS system installed one should be fine for this usecase.

My no Docker local testing workflow for this looks something like

Makefile

venv: lambda/requirements.txt
        /usr/bin/python3 -m venv $@

venv/requirements.installed: lambda/requirements.txt venv
        . $$(dirname $@)/bin/activate; pip install -r $<
        touch $@

.PHONY: clean
clean:
        rm -rf venv/

.PHONY: serve
serve: venv/requirements.installed
        @echo "run in another terminal to test:\n\tcurl -XPOST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{}'"
        . $$(dirname $<)/bin/activate; aws-lambda-rie python3 -m awslambdaric lambda/handler.handler

lambda/requirements.txt

awslambdaric @ git+https://github.com/bmoffatt/aws-lambda-python-runtime-interface-client.git

Target (OCI, Managed Runtime, both):

OCI

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bmoffatt bmoffatt requested review from maxday and trivenay February 6, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant