All Projects β†’ softprops β†’ serverless-aws-rust

softprops / serverless-aws-rust

Licence: other
βš‘πŸ—οΈ template for new aws lambda serverless rust apps

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to serverless-aws-rust

Nuxt Serverless
Nuxt.js Serverless SSR Starter on AWS (Lambda + API Gateway + S3) with Serverless Framework
Stars: ✭ 235 (+164.04%)
Mutual labels:  serverless-framework
namevault
Account creator & name generator for users on EOS and EOSIO compatible blockchains.
Stars: ✭ 17 (-80.9%)
Mutual labels:  serverless-framework
amazon-ivs-ugc-web-demo
This repository shows how you can build a compelling user-generated content (UGC) live streaming webapp with Amazon IVS.
Stars: ✭ 14 (-84.27%)
Mutual labels:  serverless-framework
Serverless Prune Plugin
Serverless plugin to reap unused versions of deployed functions from AWS
Stars: ✭ 243 (+173.03%)
Mutual labels:  serverless-framework
serverless-examples-cached-rds-ws
A serverless framework example project that uses API Gateway, ElastiCache, and RDS PostgreSQL.
Stars: ✭ 45 (-49.44%)
Mutual labels:  serverless-framework
serverless-nestjs-typeorm
Example how to nestjs using the serverless framework with TypeORM
Stars: ✭ 99 (+11.24%)
Mutual labels:  serverless-framework
Aws Lambda Typescript
This sample uses the Serverless Application Framework to implement an AWS Lambda function in TypeScript, deploy it via CloudFormation, publish it through API Gateway to a custom domain registered on Route53, and document it with Swagger.
Stars: ✭ 228 (+156.18%)
Mutual labels:  serverless-framework
serverlesscloud.cn
Serverless 中文网
Stars: ✭ 15 (-83.15%)
Mutual labels:  serverless-framework
CloudFrontier
Monitor the internet attack surface of various public cloud environments. Currently supports AWS, GCP, Azure, DigitalOcean and Oracle Cloud.
Stars: ✭ 102 (+14.61%)
Mutual labels:  serverless-framework
pexels-demo
A Node JS Express/Serverless demo application that creates a personalised video using a form. Uses the Pexels Video library and Shotstack video editing API.
Stars: ✭ 22 (-75.28%)
Mutual labels:  serverless-framework
Serverless Dotenv Plugin
Preload Environment Variables with Dotenv into Serverless
Stars: ✭ 250 (+180.9%)
Mutual labels:  serverless-framework
Shopify-Serverless-Starter-App
Shopify Serverless Starter Application built on Serverless Framework and Polaris UI (React.js)
Stars: ✭ 56 (-37.08%)
Mutual labels:  serverless-framework
corejam
A scaffolding for building progressive GraphQL powered jamstack applications.
Stars: ✭ 24 (-73.03%)
Mutual labels:  serverless-framework
Serverless Google Cloudfunctions
Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
Stars: ✭ 241 (+170.79%)
Mutual labels:  serverless-framework
noiiice
a serverless blog built on NuxtJS, AWS, serverless framework, and irrational exuberance.
Stars: ✭ 42 (-52.81%)
Mutual labels:  serverless-framework
Formplug Serverless
Form forwarding service for AWS Lambda
Stars: ✭ 232 (+160.67%)
Mutual labels:  serverless-framework
action-serverless
GitHub Action for interacting with the Serverless CLI
Stars: ✭ 36 (-59.55%)
Mutual labels:  serverless-framework
serverless-multicloud-example
An example Node Express app that can be deployed in any major cloud by the Serverless framework
Stars: ✭ 20 (-77.53%)
Mutual labels:  serverless-framework
aws-secure-websockets
Secure web socket implementation using AWS products and serverless framework
Stars: ✭ 49 (-44.94%)
Mutual labels:  serverless-framework
sls-photos-upload-service
Example web app and serverless API for uploading photos and saving to S3 and DynamoDB
Stars: ✭ 50 (-43.82%)
Mutual labels:  serverless-framework

serverless AWS Rust template

A sample template for bootstrapping Rustlang AWS Lambda applications with ⚑ serverless framework ⚑.

✨ features

  • πŸ¦€ Build Rustlang applications targeting AWS Lambda with ease
  • πŸ›΅ Continuous integration testing with GitHub Actions
  • πŸš€ Continuous deployment with GitHub Actions
  • πŸ§ͺ Getting started unit tests

πŸ“¦ install

Install the serverless framework cli.

Then then run the following in your terminal

$ npx serverless install \
  --url https://github.com/softprops/serverless-aws-rust \
  --name my-new-app

This will download the source of a sample Rustlang application and unpack it as a new service named "my-new-app" in a directory called "my-new-app"

πŸ§™ how to be a wizard

Assuming you have aws credentials with appropriate deployment permissions configured (if you already use any existing AWS tooling installed you likely already have this configured), you can impress your friends by creating a project that is born in a production environment.

$ npx serverless install \
  --url https://github.com/softprops/serverless-aws-rust \
  --name my-new-app \
  && cd my-new-app \
  && npm ci \
  && npx serverless deploy

npm ci will make sure npm dependencies are installed based directly on your package-lock.json file. This only needs run once. The first time you run npx serverless deploy this project will pull down and compile the base set of dependencies and your application. Unless the dependencies change afterwards, this should only happen once, resulting in an out of the box rapid deployment cycle.

πŸ›΅ continuous integration and deployment

This template includes an example GitHub actions configuration file which can unlock a virtuous cycle of continuous integration and deployment ( i.e all tests are run on prs and every push to master results in a deployment ).

GitHub actions is managed simply by the presence of a file checked into your repository. To set up GitHub Actions to deploy to AWS you'll need to do a few things

Firstly, version control your source. Github is free for opensource.

$ git init
$ git remote add origin [email protected]:{username}/{my-new-service}.git

Store a AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY used for aws deployment in your repositories secrets https://github.com/{username}/{my-new-service}/settings/secrets

Add your changes to git and push them to GitHub.

Finally, open https://github.com/{username}/{my-new-service}/actions in your browser and grab a bucket of popcorn 🍿

πŸ”« function triggering

With your function deployed you can now start triggering it using serverless framework directly or the AWS integration you've configured to trigger it on your behalf

$ npx serverless invoke -f hello -d '{"foo":"bar"}'

πŸ”¬ logs

With your function deployed you can now tail it's logs right from your project

$ npx serverless logs -f hello

πŸ‘΄ retiring

Good code should be easily replaceable. Good code should also be easily disposable. Retiring applications should be as easy as creating and deploying them them. The dual of serverless deploy is serverless remove. Use this for retiring services and cleaning up resources.

$ npx serverless remove

ℹ️ additional information

πŸ‘― contributing

This template's intent is to set a minimal baseline for getting engineers up an running with a set of repeatable best practices. See something you'd like in this template that would help others? Feel free to open a new GitHub issue. Pull requests are also welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].