Deploying Rust to Lambda

#1
  1. I know about the “use GO runtime trick”.

2., I am following https://aws.amazon.com/blogs/opensource/rust-runtime-for-aws-lambda/

  1. I have musl-gcc wrapper installed. I can execute
cargo build --release --target x86_64-unknown-linux-musl
zip -j rust.zip ./target/x86_64-unknown-linux-musl/release/bootstrap

perfectly fine.

  1. Now, for some reason, the tutorial stops using the CLI and starts using the web GUI for uploading the code.

  2. Does anyone know how to do this step via CLI ? I want to be able to type “make deploy” instead of going through the GUI every time I need to upload an Lambda function.

Thanks!

#2

There’s info on using the AWS CLI for publishing, as well as another option for publishing, on the aws-lambda-rust-runtime README. :+1:

1 Like
#3

@matthewkmayer : Got it working. Thanks!