ciphrd / aws-s3-upload-cli

a CLI interface to upload a file to a S3 Bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A very simple node CLI to upload files to a S3 bucket

This is a rudimentary implementation which just logs "error" or "success" if the task fails or succeed. It should not be used in a sensitive production environment.

How to use

It's stupid as fuck:

1. Setup your credentials

The AWS SDK can load a credentials file at a specific location on the system, as documented here: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html

2. Call the utility

node /path/to/index.js bucket path/in/bucket /path/to/file

The Bucket Key will be the same as the file name.

About

a CLI interface to upload a file to a S3 Bucket


Languages

Language:JavaScript 100.0%