Giter VIP home page Giter VIP logo

aws-s3-uploader's Introduction

AWS S3 uploader

Uploads passed directory hierarchy to S3 bucket, optionally removing existing data before upload.

Running application

To run uploader application all the necessary arguments should be passed to program via command line or environment variables.

argument env variable default description
--key s3u_key AWS access key
--secret s3u_secret AWS access secret
--bucket s3u_bucket AWS bucket
--region s3u_region US_EAST_1 AWS region
--root s3u_root resources Root 'directory' in the bucket (special value 'root' to perform action on bucket itself)
--dir s3u_dir Directory to upload to s3 recursively; if not set, no upload action will be taken
--clean s3u_clean false Remove all existing files from given root; if no --dir is set, only cleanup will be performed

Examples

  • cleanup the whole bucket
java -jar aws-s3-uploader.jar --key=AWSKEY --secret=AWSSECRET --bucket=AWSBUCKET --root=root --clean
  • cleanup default "directory" ('resources') in the bucket
java -jar aws-s3-uploader.jar --key=AWSKEY --secret=AWSSECRET --bucket=AWSBUCKET --clean
  • upload local directory 'local-files' to AWS bucket under 'uploaded-files' subdirectory
java -jar aws-s3-uploader.jar --key=AWSKEY --secret=AWSSECRET --bucket=AWSBUCKET --root=uploaded-files --dir=local-files
  • cleanup bucket's "subdirectory" and upload local directory 'local-files' to AWS bucket under 'uploaded-files' subdirectory
java -jar aws-s3-uploader.jar --key=AWSKEY --secret=AWSSECRET --bucket=AWSBUCKET --root=uploaded-files --dir=local-files --clean

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.