AWS | S3 File Replicator

This example creates 2 AWS S3 buckets and copies files in one bucket to the other

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u https://github.com/serverless/examples/tree/master/aws-node-s3-file-replicator -n  aws-node-s3-file-replicator

AWS S3 File Replicator

This example creates 2 AWS S3 buckets and copies files in one bucket to the other. It's written in Node.js

Unless you use the existing S3 bucket plugin, CloudFormation won't let you use an existing AWS S3 bucket.

In Serverless Framework, when you have function s3 events, they will automatically create a new AWS S3 bucket, if it doesn't exist already. This is where the inputs bucket comes from. The outputs bucket is created in the resources section.

Simply upload a file to the inputs bucket (e.g. using the AWS S3 console) and see it be instantly transferred to the outputs bucket.

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g