Documentation
¶
Overview ¶
Command lambda-rie-fake is a minimal local stand-in for AWS Lambda, used to test the Go SDK's Lambda adapter path (examples/go_agent_nodes/cmd/lambda) without Docker or an AWS account. It exposes two listeners:
The Lambda Runtime API (the subset aws-lambda-go's lambda.Start() drives - see aws/aws-lambda-go's lambda/runtime_api_client.go): GET /2018-06-01/runtime/invocation/next POST /2018-06-01/runtime/invocation/{id}/response POST /2018-06-01/runtime/invocation/{id}/error The compiled Lambda binary connects to this one via AWS_LAMBDA_RUNTIME_API, exactly as it would against the real service.
A public "Function URL" front end: any HTTP request received here is translated into an API Gateway HTTP API v2 payload event, sent through the runtime API to the function, and the v2 response event is translated back into a real HTTP response. This is what lets the control plane hit this process with an ordinary POST /execute exactly as it would a real Lambda Function URL - the control plane never knows it's talking to Lambda.