File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
# rust-aws-lambda-example
2
+
3
+ Build:
4
+ ``` bash
5
+ cargo build --release --target x86_64-unknown-linux-musl
6
+ ```
7
+
8
+ Package:
9
+ ``` bash
10
+ cp ./target/x86_64-unknown-linux-musl/release/rust-aws-lambda-user-exists ./bootstrap && zip lambda.zip bootstrap
11
+ ```
12
+
13
+ Test:
14
+ ``` bash
15
+ docker run --rm -v " $PWD " :/var/task lambci/lambda:provided handler ' {"username": "tizio90"}'
16
+ ```
Original file line number Diff line number Diff line change 1
- extern crate lambda_runtime as lambda ;
1
+ extern crate lambda_runtime;
2
2
extern crate serde_derive;
3
3
4
4
use std:: error:: Error ;
5
5
use serde_derive:: { Serialize , Deserialize } ;
6
- use lambda :: { lambda, Context , error:: HandlerError } ;
6
+ use lambda_runtime :: { lambda, Context , error:: HandlerError } ;
7
7
8
8
fn main ( ) -> Result < ( ) , Box < dyn Error > > {
9
9
lambda ! ( user_exists_handler) ;
You can’t perform that action at this time.
0 commit comments