https://github.com/time4tea/rust-lambda
https://github.com/time4tea/rust-lambda
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/time4tea/rust-lambda
- Owner: time4tea
- Created: 2020-12-30T19:36:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-15T18:09:55.000Z (over 5 years ago)
- Last Synced: 2025-02-27T05:26:09.600Z (over 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Rust
Just some stuff while learning some rust.. its probably terrible.
### Goal
Write an AWS lambda function that can take a request, do some routing, call some other services, and return some content.
### Progress
- bin/basic.rs - print out the json that gets sent as an API gateway request
- bin/hello.rs - return a message in the right format for the API gateway
- bin/convert.rs - convert api gateway request to http::Request which seems to be a thing
### Building
Need:
- rust
- sam
In some shell...
```
sam --debug build
sam local start-api
```
In another shell...
```
make watch
```
In yet another shell...
```
curl -XPOST http://127.0.0.1:3000/bob
```
now you can edit the code, and see it liveish...