Crates.io | aws-local |
lib.rs | aws-local |
version | 0.1.1 |
source | src |
created_at | 2024-02-05 08:10:22.911606 |
updated_at | 2024-02-05 08:51:40.608414 |
description | A HTTP Server proxying to local AWS Lambda Runtime |
homepage | |
repository | https://github.com/amacal/aws-local |
max_upload_size | |
id | 1127370 |
size | 50,563 |
A local HTTP server for proxying requests to AWS Lambda functions, facilitating the development and testing of Lambda functions locally.
aws-local
is a Rust-based CLI tool that creates a local server mimicking AWS API Gateway, allowing developers to test and debug AWS Lambda functions locally. It routes incoming HTTP requests to your Lambda function and returns the function's response, streamlining the Lambda development cycle by providing immediate feedback and compatibility with cargo lambda watch
.
Install aws-local directly using Cargo:
cargo install aws-local
Run aws-local to start intercepting and forwarding HTTP requests to your local AWS Lambda function.
aws-local --function-name your-function-name -vvv
Start your local lambda function runtime.
cargo lambda watch -a 127.0.0.1
Invoke Your Lambda Function Locally, by sending requests to http://localhost:3000/your-lambda-endpoint. aws-local
will handle the requests, forwarding them to your Lambda function and returning the responses.
Contributions are welcome! If you have a feature request, bug report, or a pull request, please feel free to open an issue or a pull request on the project repository.
aws-local
is released under the MIT License. See the LICENSE file for more details.