All Projects → ammar1y → s3upload

ammar1y / s3upload

Licence: MIT license
Upload multiple files to AWS S3, make them public, and get their URLs easily from the command line.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to s3upload

Security monkey
Security Monkey monitors AWS, GCP, OpenStack, and GitHub orgs for assets and their changes over time.
Stars: ✭ 4,244 (+17583.33%)
Mutual labels:  aws-s3, boto3
simple-flask-s3-uploader
Simple and easy to use Flask app to upload files to Amazon S3. Based on Python, Flask, and using Boto3. Securely storing your AWS credentials as environment variables. Quick AWS S3 Flask uploader example.
Stars: ✭ 24 (+0%)
Mutual labels:  aws-s3, boto3
simple-file-uploader
A file uploader written using HTML5 and Node.js. It can upload both to a local directory on the server or to an AWS S3 server.
Stars: ✭ 85 (+254.17%)
Mutual labels:  aws-s3, file-upload
Meteor Files
🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
Stars: ✭ 1,033 (+4204.17%)
Mutual labels:  aws-s3, file-upload
parameterstore-backup
Python script to take a backup of the AWS parameter store
Stars: ✭ 19 (-20.83%)
Mutual labels:  boto3
trackit2-home
TrackIt helps you to optimize your AWS cloud
Stars: ✭ 46 (+91.67%)
Mutual labels:  aws-s3
Minio Dotnet
MinIO Client SDK for .NET
Stars: ✭ 249 (+937.5%)
Mutual labels:  aws-s3
Node S3 Uploader
Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
Stars: ✭ 237 (+887.5%)
Mutual labels:  aws-s3
boto3-examples
Example scripts for boto3.
Stars: ✭ 55 (+129.17%)
Mutual labels:  boto3
react-butterfiles
🦋 Component for building file fields - from basic file inputs to drag and drop image galleries.
Stars: ✭ 44 (+83.33%)
Mutual labels:  file-upload
bring-your-own-data-labs
Bring your own data Labs: Build a serverless data pipeline based on your own data
Stars: ✭ 40 (+66.67%)
Mutual labels:  aws-s3
termscp
🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3
Stars: ✭ 707 (+2845.83%)
Mutual labels:  aws-s3
react-file-upload
react file uploader
Stars: ✭ 14 (-41.67%)
Mutual labels:  file-upload
S3auth
Amazon S3 HTTP Basic Auth Gateway
Stars: ✭ 249 (+937.5%)
Mutual labels:  aws-s3
fastify-file-upload
Fastify plugin for uploading files
Stars: ✭ 68 (+183.33%)
Mutual labels:  file-upload
Php Ffmpeg Video Streaming
📼 Package media content for online streaming(DASH and HLS) using FFmpeg
Stars: ✭ 246 (+925%)
Mutual labels:  aws-s3
cheryl
PHP web based file manager
Stars: ✭ 44 (+83.33%)
Mutual labels:  file-upload
multer-sharp-s3
Multer Sharp S3 is streaming multer storage engine permit to transform / resize the image and upload to AWS S3.
Stars: ✭ 54 (+125%)
Mutual labels:  aws-s3
sgfs
🚀Simple http file server. A open source file server, implement by golang that can be used to upload and download files. Simple to deploy, simple to use. 中文介绍:
Stars: ✭ 51 (+112.5%)
Mutual labels:  file-upload
akka-persistence-s3
akka-persistence journal/snapshot plugin for AWS S3(support aws sdk for java v2)
Stars: ✭ 19 (-20.83%)
Mutual labels:  aws-s3

s3upload



With this simple program, you can upload multiple files at once to Amazon Web Services(AWS) S3 using one command. It uploads the files, makes them public, and then prints their URLs.

s3upload is written in Python3, and it uses Boto 3 to deal with AWS S3.

Prerequisites

This program requires Python3 with these libraries:

  • Boto 3: install with pip install boto3.

  • requests: install with pip install requests.

AWS Credentials

For s3upload to be able to connect to your AWS account, you need to add your AWS credentials. It is a simple process.

  1. Go to AWS IAM Console.

  2. Create a new user or use an existing user.

  3. Generate a new set of keys for the user.

  4. Create a file named credentials in the directory ~/.aws/ (Create ~/.aws/ if it's not already there).

  5. Put the following in credentials file:

[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY

You're done!

Make file executable

After you download s3upload file from this repository, make it executable using the command:

chmod +x s3upload

and then put it in /usr/local/bin (or any path in your $PATH variable) so you can call it directly from the command line.

Usage

s3upload LOCAL_DIRECTORY BUCKET_NAME [-d DEST_DIRECTORY] [-ext FILES_EXTENSIONS]

where:

  • LOCAL_DIRECTORY is the path to the local directory which contains the local files to be transferred.

  • BUCKET_NAME is the name of the destination S3 bucket.

  • DEST_DIRECTORY (optional) is the path inside the destination bucket that the files need to be transferred to. Note that it should not start with '/'. If it is not specified, files will be uploaded to the main bucket directory.

  • FILES_EXTENSION (optional) is the extensions of the files in LOCAL_DIRECTORY that need to be transfered. Extensions should be separated by ',' only. If FILES_EXTENSION is not specified, all files in the directory are uploaded (except files whose names start with '.').

This program uploads files only; folders are ignored.

Enclose all arguments with quotation marks, as shown in the example below.

Example

s3upload "/Users/abc/xyz/" "bucket_3" -d "2018/Nov/" -ext "png,csv"

This will upload all png and csv files in the local directory 'xyz' to the directory '2018/Nov/' inside bucket_3.

License

My work is licensed under MIT. Copyright (c) 2018 Ammar Alyousfi

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].