Skip to content

Commit

Permalink
Merge pull request #48 from vvilhonen/cargo-aws-lambda-docs
Browse files Browse the repository at this point in the history
Instructions on using via cargo aws-lambda
  • Loading branch information
softprops authored Nov 17, 2019
2 parents 23c0a3e + a2af54d commit d9c8769
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,29 @@ $ docker run --rm \
softprops/lambda-rust
```

## 🤸🤸 usage via cargo aws-lambda subcommand

If you want to set up ad hoc lambda functions or have another reason to not to go with full blown devops orchestration tools,
there's a cargo subcommand to compile your code into a zip file and deploy it to an existing function. This comes with only
rust and docker as dependencies.

Setup
```sh
$ cargo install cargo-aws-lambda
```

To compile and deploy in your project directory
```sh
$ cargo aws-lambda {your aws function's full ARN} {your-binary-name}
```
To list all options
```sh
$ cargo aws-lambda --help
```
More instructions can be found [here](https://github.com/vvilhonen/cargo-aws-lambda).
## 🔬 local testing
Once you've built a Rust lambda function artifact, the `provided` runtime expects
Expand Down

0 comments on commit d9c8769

Please sign in to comment.