← 返回首页
serverless-examples/aws-node-s3-file-replicator at master · localstack/serverless-examples · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 
 
 master
Top

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
View all files

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.

Footer

© 2026 GitHub, Inc.