Skip to content

drodil/rustybeer-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda functionality for Rustybeer

This project is used to create AWS Lambda functionalities that use Rustybeer library for calculations.

Setup

Install the following dependencies:

Once all that is done, install the following packages:

npm install -g serverless
npm install --save-dev serverless-rust

And setup your AWS CLI for deployments:

aws configure

You can get your tokens from AWS IAM

Running locally

You can run lambda functions locally with serverless:

serverless invoke local -f FUNCTION -d JSON_PAYLOAD

Deploying

When you have your AWS CLI set up you can easily deploy the endpoints to production with serverless

serverless deploy