Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagletmt/aws-lambda-rie-gateway
Convert HTTP request to API Gateway payload for aws-lambda-rie
https://github.com/eagletmt/aws-lambda-rie-gateway
Last synced: about 2 months ago
JSON representation
Convert HTTP request to API Gateway payload for aws-lambda-rie
- Host: GitHub
- URL: https://github.com/eagletmt/aws-lambda-rie-gateway
- Owner: eagletmt
- License: mit
- Created: 2021-01-13T16:21:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-22T18:02:15.000Z (about 1 year ago)
- Last Synced: 2024-11-01T01:41:47.273Z (about 2 months ago)
- Language: Rust
- Size: 77.1 KB
- Stars: 24
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-lambda-rie-gateway
Convert HTTP request to API Gateway payload for [aws-lambda-rie](https://github.com/aws/aws-lambda-runtime-interface-emulator)# Usage
1. 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
- https://docs.aws.amazon.com/lambda/latest/dg/images-test.html
- https://github.com/aws/aws-lambda-runtime-interface-emulator
2. Start aws-lambda-rie-gateway: `cargo run`
3. Then you can access Lambda for API Gateway with normal HTTP request: `curl http://localhost:8080/hello`# Usage Docker Image
## From container registry
1. Run `docker run --rm --env TARGET_URL=http://rie_app:8080 --publish 8080:8080 public.ecr.aws/eagletmt/aws-lambda-rie-gateway`## From source
1. Clone this repository
2. Then `docker build --tag aws-lambda-rie-gateway`
3. Execute with `docker run --rm --env TARGET_URL=http://rie_app:8080 --publish 8080:8080 aws-lambda-rie-gateway`