Convert HTTP request to API Gateway payload for aws-lambda-rie
- Start Docker container for Lambda with aws-lambda-rie:
docker run -p 9000:8080 0123456789012dkr.ecr.ap-northeast-1.amazonaws.com/your-awesome-app:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
- See documents and README of aws-lambda-rie for details
- Start aws-lambda-rie-gateway:
cargo run
- Then you can access Lambda for API Gateway with normal HTTP request:
curl http://localhost:8080/hello
- Run
docker run --rm --env TARGET_URL=http://rie_app:8080 --publish 8080:8080 ghcr.io/eagletmt/aws-lambda-rie-gateway
- Clone this repository
- Then
docker build --tag aws-lambda-rie-gateway
- Execute with
docker run --rm --env TARGET_URL=http://rie_app:8080 --publish 8080:8080 aws-lambda-rie-gateway