- Install cargo-lambda
- Build the function with
cargo lambda build --release - Deploy the function to AWS Lambda with
cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE - Enable Lambda streaming response on Lambda console: change the function url's invoke mode to
RESPONSE_STREAM - Verify the function works:
curl -v -N <function-url>. The results should be streamed back with 0.5 second pause between each word.
Build the function with cargo lambda build --release --arm64