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
The inputBucket and outputBucket are provisioned via the serverless-lift storage construct, which creates an S3 bucket per construct with sensible defaults.
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.
Setup
npm install
Deploy
serverless deploy
After running deploy, you should see output similar to:
Deploying "replicator" to stage "dev" (us-east-1)
✔ Service deployed to stack replicator-dev (65s)
functions:
replicate: replicator-dev-replicate (1.1 kB)