File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,29 @@ $ docker run --rm \
33
33
softprops/lambda-rust:{tag}
34
34
```
35
35
36
+ ## Local Testing
37
+
38
+ Once you've build a Rust lambda function artifact the ` provided ` runtime expects
39
+ deployments of that artifact to be named ** bootstrap**
40
+
41
+ ``` sh
42
+ $ mv target/lambda/release/{your-crate-name} target/lambda/release/bootstap
43
+ ```
44
+
45
+ You can then invoke this bootstap executable with the lambda-ci provided docker image
46
+
47
+
48
+ ``` sh
49
+ # start a docker container replicating the "provided" lambda runtime
50
+ # awaiting an event to be provided via stdin
51
+ $ docker run \
52
+ -i -e DOCKER_LAMBDA_USE_STDIN=1 \
53
+ --rm \
54
+ -v \
55
+ " $PWD /target/lambda/release" :/var/task \
56
+ lambci/lambda:provided
57
+
58
+ # provide payload via stdin (typically a json blob)
59
+
60
+ # Ctrl-D to yield control back to your function
61
+ ```
You can’t perform that action at this time.
0 commit comments