This project allows you to take daily cognito user pool backups (without passwords) with a simple lambda function.
First build the project on your local computer and then deploy the lambda. Note: Don't forgot to edit .env file.
EventBridge (CloudWatch Events) Tutorial Video.
To build and deploy your application for the first time, run the following in your shell:
npm install
sam build
sam deploy --guided
Tests are defined in the cognito-s3-backup/tests
folder in this project. Use NPM to install the Mocha test framework and run unit tests.
-v1$ cd cognito-s3-backup
cognito-s3-backup$ npm install
cognito-s3-backup$ npm run test
To delete the sample application that you created, use the AWS CLI. Assuming you used your project name for the stack name, you can run the following:
sam delete --stack-name -v1
See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.
Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: AWS Serverless Application Repository main page