Skip to content

updating docs to match changes in cargo lambda #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ fn test_my_lambda_handler() {
[Cargo Lambda](https://www.cargo-lambda.info) provides a local server that emulates the AWS Lambda control plane. This server works on Windows, Linux, and MacOS. In the root of your Lambda project. You can run the following subcommand to compile your function(s) and start the server.

```bash
cargo lambda watch -a 127.0.0.1 -p 9001
cargo lambda watch
```

Now you can use the `cargo lambda invoke` to send requests to your function. For example:
Expand All @@ -358,7 +358,7 @@ An simpler alternative is to cURL the following endpoint based on the address an

```bash
curl -v -X POST \
'http://127.0.0.1:9001/lambda-url/<lambda-function-name>/' \
'http://127.0.0.1:9000/lambda-url/<lambda-function-name>/' \
-H 'content-type: application/json' \
-d '{ "command": "hi" }'
```
Expand Down
Loading