This a serverless setup for aws lambda function for mongodb backups.
Backups are created daily and stored in s3 bucket specified in env.yml
Go to serverless for instructions how to setup your environment. Once serverless is ready then:
yarn install
- You need to parametrized deployment by creating
env.yml
. Use env.example.yml and change parameters. - Deploy
serverless deploy
- Test your function
serverless invoke -f backup -l