https://github.com/mozamimy/s3-multicloud-backup
A serverless application that replicate all objects in S3 bucket to Google Cloud Storage.
https://github.com/mozamimy/s3-multicloud-backup
aws aws-lambda google-cloud-storage serverless
Last synced: about 2 months ago
JSON representation
A serverless application that replicate all objects in S3 bucket to Google Cloud Storage.
- Host: GitHub
- URL: https://github.com/mozamimy/s3-multicloud-backup
- Owner: mozamimy
- License: mit
- Created: 2018-02-02T05:17:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T05:29:18.000Z (over 8 years ago)
- Last Synced: 2025-09-23T04:41:42.054Z (9 months ago)
- Topics: aws, aws-lambda, google-cloud-storage, serverless
- Language: JavaScript
- Size: 6.84 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# s3-multicloud-backup
A serverless application that replicate all objects in S3 bucket to Google Cloud Storage.
## Archtecture
TBD
## Run locally as testing
It requires following components on AWS,
- S3 bucket: s3-multicloud-backup-staging
- Put a file to the bucket with `banners/1000/1000.jpg` key.
- GCS bucket: s3-multicloud-backup-staging
You should build native dependencies with lambci/lambda:build-nodejs6.10 image and then you can invoke the function with [aws-sam-local](https://github.com/awslabs/aws-sam-local) command.
```
$ docker run --rm -v "$PWD/src/":/var/task lambci/lambda:build-nodejs6.10 npm install
$ cd ../
# You need to set AWS credentials before execute following command
$ aws-sam-local local invoke S3MulticloudBackupStagingFunction -e sample-event-s3-via-sns.json --template=deploy/template/staging.yml
$ aws-sam-local local invoke S3MulticloudBackupStagingFunction -e sample-event-dlq.json --template=deploy/template/staging.yml
```