Skip to content

Commit d9c8769

Browse files
authored
Merge pull request #48 from vvilhonen/cargo-aws-lambda-docs
Instructions on using via cargo aws-lambda
2 parents 23c0a3e + a2af54d commit d9c8769

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,29 @@ $ docker run --rm \
5454
softprops/lambda-rust
5555
```
5656

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+
5780
## 🔬 local testing
5881
5982
Once you've built a Rust lambda function artifact, the `provided` runtime expects

0 commit comments

Comments
 (0)