upload-file-to-s3
v0.2.8
Published
upload file to s3
Downloads
20
Maintainers
Readme
upload-file-to-s3
upload file to s3
Prerequisite
- 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
- 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
- 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