File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,29 @@ $ docker run --rm \
54
54
softprops/lambda-rust
55
55
```
56
56
57
+ ## 🤸🤸 usage via cargo aws-lambda subcommand
58
+
59
+ If you want to set up ad hoc lambda functions or have another reason to not to go with full blown devops orchestration tools,
60
+ there's a cargo subcommand to compile your code into a zip file and deploy it to an existing function. This comes with only
61
+ rust and docker as dependencies.
62
+
63
+ Setup
64
+ ``` sh
65
+ $ cargo install cargo-aws-lambda
66
+ ```
67
+
68
+ To compile and deploy in your project directory
69
+ ``` sh
70
+ $ cargo aws-lambda {your aws function' s full ARN} {your-binary-name}
71
+ ```
72
+
73
+ To list all options
74
+ ```sh
75
+ $ cargo aws-lambda --help
76
+ ```
77
+
78
+ More instructions can be found [here](https://github.com/vvilhonen/cargo-aws-lambda).
79
+
57
80
## 🔬 local testing
58
81
59
82
Once you' ve built a Rust lambda function artifact, the ` provided` runtime expects
You can’t perform that action at this time.
0 commit comments