A serverless application that replicate all objects in S3 bucket to Google Cloud Storage.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deploy
src
.gitignore
LICENSE.txt
README.md
sample-event-dlq.json
sample-event-s3-via-sns.json

README.md

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 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