AWS Lambda handler that proxies events to a configurable HTTP endpoint
Project description
aws-event-proxy
An AWS Lambda handler that proxies events to a configurable HTTP endpoint.
Forwards events from any AWS source (SQS, SNS, S3, DynamoDB Streams, etc.) to an external HTTP endpoint via POST, including Lambda execution context in the request headers.
Installation
pip install aws-event-proxy
Configuration
Set the PROXY_TARGET_URL environment variable in your Lambda function to the URL you want events forwarded to.
Usage
Set your Lambda handler to:
aws_event_proxy.handler
What it does
- POSTs the raw Lambda event as JSON to
PROXY_TARGET_URL - Attaches Lambda context metadata as the
X-Lambda-Contextrequest header - Returns the parsed JSON response body from the target
- Logs proxy activity and re-raises errors to the Lambda runtime
Development
make setup # install dependencies and create .venv
poetry run pytest # run tests
make build # build package
Publishing
poetry publish --build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_event_proxy-0.1.0.tar.gz.
File metadata
- Download URL: aws_event_proxy-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d5bef37738622982ea4788b1e61315f54537d61d2341392b1d63f145f207ab
|
|
| MD5 |
5f365d4a786f853c8b2ad60e00404c49
|
|
| BLAKE2b-256 |
490faaf29e2d175a1c464da59a09a1a4c4eb799d1b85104718f1dbdd72f03ddb
|
File details
Details for the file aws_event_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aws_event_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b662d020a6dd8b50bc37adec79a1d328672d3e595d9a2df1d5a0560ae16d8964
|
|
| MD5 |
ce0a1c1709ca82d4c9f13207dfc2d5ad
|
|
| BLAKE2b-256 |
270528eafd6045842482562b4bb1e21ec8f9ca0b3e95e812048aa545e1eb0a33
|