Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 550 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 550 Bytes

firebase-lambda-backup

An aws lambda that does periodic backups of firebase database to S3 as a json file.

Usage

Setup a lambda in aws console with env variables:

S3_REGION
S3_BUCKET
FIREBASE_URL
FIREBASE_TOKEN

FIREBASE_TOKEN is setup by default to be encrypted using KMS.

You can setup a aws cloudwatch rule to run this lambda on a schedule.

Build and Deploy

You can upload the code manually or use the provided make file to build a zip and upload.

npm run deploy for example (you need specify your lambda function name).