Just some stuff while learning some rust.. its probably terrible.
Write an AWS lambda function that can take a request, do some routing, call some other services, and return some content.
- 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
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...