Skip to content

evanchiu/s3-replicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3-replicator

Replicates S3 objects to configured buckets

Setup

  • Create an AWS Account and IAM User with the AdministratorAccess AWS Managed Policy
  • Run aws configure to put store that user's credentials in ~/.aws/credentials
  • Create an S3 bucket for storing the Lambda code and store its name in a shell variable with:
    • export CODE_BUCKET=bucket
  • Create the S3 buckets that you'll want to replicate into, store their names in shell variable:
    • export DEST_BUCKETS=bucket1,bucket2,bucketN
  • Npm install:
    • npm install
  • Build:
    • npm run build
  • Upload package to S3, transform the CloudFormation template:
    • npm run package
  • Deploy to CloudFormation:
    • npm run deploy

Use

  • This will create a new S3 Bucket, dev-s3-replicator-username-sourcebucket-cloudformation-id
  • Objects that you put into that bucket will be replicated to the destination buckets

© 2017 Evan Chiu. This project is licensed under the terms of the MIT license.

About

Replicates S3 objects to configured buckets

Resources

License

Stars

Watchers

Forks

Packages

No packages published