lucaswilliameufrasio / lambda-rust-sqlite3-efs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lambda layer used on this project to run the app without an API Gateway event adapter

https://github.com/awslabs/aws-lambda-web-adapter

How to run migrations

export DATABASE_URL="sqlite:users.db"
sqlx migrate run

How to revert migrations

export DATABASE_URL="sqlite:users.db"
sqlx migrate revert

How to create migrations

sqlx migrate add -r add_i_dont_know_table

Just run the commands below to deploy the app after provisioning all infrastructure required using Terraform

make build
npx serverless deploy

Just use AWS DataSync to backup the database and be happy

https://repost.aws/knowledge-center/datasync-transfer-efs-s3

About


Languages

Language:Rust 76.1%Language:HCL 18.3%Language:Makefile 5.6%