Non-HTTP Event Triggers
Lambda Web Adapter supports all non-HTTP event triggers including SQS, SNS, S3, DynamoDB, Kinesis, Kafka, EventBridge, and Bedrock Agents.
How It Works
The adapter forwards the raw event payload to your web application via an HTTP POST to a configurable path (default: /events).
- Lambda receives a non-HTTP event (e.g. SQS message)
- The adapter POSTs the event JSON body to
http://127.0.0.1:{port}/events - Your app processes the event and returns a JSON response
- The adapter forwards the response back to Lambda
Configuration
AWS_LWA_PASS_THROUGH_PATH=/events
Example Handler
# FastAPI
@app.post("/events")
async def handle_event(request: Request):
event = await request.json()
# Process SQS, SNS, S3, etc.
return {"statusCode": 200, "body": "processed"}
// Express.js
app.post('/events', (req, res) => {
const event = req.body;
// Process the event
res.json({ statusCode: 200, body: 'processed' });
});