aws / aws-lambda-runtime-interface-emulator

Apache License 2.0
915 stars 95 forks source link

Allow for user-defined client context #110

Closed mcieno closed 3 months ago

mcieno commented 6 months ago

Issue #, if available: Fixes #74 (and enables for https://github.com/aws/aws-sam-cli/issues/1177)

Description of changes: As explained in the Lambda Invoke documentation, the client context is passed base64-encoded in the X-Amz-Client-Context header.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

valerena commented 4 months ago

Thank for your contribution! Would you be able to add integration tests for this behavior? (on test/integration/local_lambda/test_end_to_end.py)

(Make sure that you get the latest code, because the tests have been refactored a little lately)

mcieno commented 4 months ago

Thanks @valerena. Rebased and aligned test to latest changes.