upload-file-to-s3

0.2.8 • Public • Published

upload-file-to-s3

upload file to s3

Version Downloads/week License Build

Prerequisite

  1. AWS configuration and credential setup - https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html

Installation

npm install -g upload-file-to-s3

Usage

  1. As an AWS account owner, I will want to generate a pre-signed URL that I can pass to my team members to upload file to my S3 bucket
  2. As a user, I will want to use the generated pre-signed URL to upload my data into the S3 bucket

Commands

Generate a pre-signed url to upload file to S3

  > upload-file-to-s3 -p -n=<file name> -b=<s3 bucket name>
  
  Generating pre-signed url for uploading image.png to S3... generated
  https://my-ecommerce.s3.ap-southeast-1.amazonaws.com/image.png?X-Amz-Algorithm=A.....

Upload file to S3 using a pre-signed URL

> upload-file-to-s3 -u="<pre-signed URL>" -f="<file path>"

Uploading /usr/home/image.png to S3... uploaded

Package Sidebar

Install

npm i upload-file-to-s3

Weekly Downloads

1

Version

0.2.8

License

MIT

Unpacked Size

6.48 kB

Total Files

7

Last publish

Collaborators

  • sebastian.lzy