You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code above is the same as the [basic example](https://github.com/awslabs/aws-lambda-rust-runtime/tree/master/lambda-runtime/examples/basic.rs) in the `lambda-runtime` crate.
57
57
58
-
### deployment
58
+
### Deployment
59
59
60
-
#### aws cli
60
+
There are currently multiple ways of building this package: manually, and the [Serverless framework](https://serverless.com/framework/).
61
61
62
-
To deploy the basic sample as a Lambda function using the aws cli, we first need to build it with `cargo`. Since Lambda uses Amazon Linux, you'll need to target your executable for an `x86_64-linux` platform.
62
+
#### AWS CLI
63
+
64
+
To deploy the basic sample as a Lambda function using the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html), we first need to manually build it with [`cargo`](https://doc.rust-lang.org/cargo/). Since Lambda uses Amazon Linux, you'll need to target your executable for an `x86_64-linux` platform.
Alternatively, you can build a Rust-based Lambda function declaratively using the [Serverless framework Rust plugin](https://github.com/softprops/serverless-rust).
96
100
97
-
You can optionally skip all of the manual building, renaming, and deploying steps above and use the [Serverless framework Rust plugin](https://github.com/softprops/serverless-rust). You can find an example
98
-
getting started template application [here](https://github.com/softprops/serverless-aws-rust).
101
+
A number of getting started Serverless application templates exist to get you up and running quickly
99
102
100
-
Serverless application templates exist for a minimal [echo function](https://github.com/softprops/serverless-aws-rust), [http function](https://github.com/softprops/serverless-aws-rust-http), and [multi function service](https://github.com/softprops/serverless-aws-rust-multi).
103
+
* a minimal [echo function](https://github.com/softprops/serverless-aws-rust) to demonstrate what the smallest Rust function setup looks like
104
+
* a minimal [http function](https://github.com/softprops/serverless-aws-rust-http) to demonstrate how to interface with API Gateway using Rust's native [http](https://crates.io/crates/http) crate (note this will a git dependency until 0.2 is published)
105
+
* a combination [multi function service](https://github.com/softprops/serverless-aws-rust-multi) to demonstrate how to set up a services with multiple independent functions
101
106
102
-
To get started, just run the following commands to create a new lambda Rust application
107
+
Assuming your host machine has a relatively recent version of node, you [won't need to install any host-wide serverless dependencies](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner). To get started, run the following commands to create a new lambda Rust application
0 commit comments