/aws-s3

Use aws-sdk to read a file from an S3 bucket.

Primary LanguageJavaScriptMIT LicenseMIT

aws-s3

Use aws-sdk to read a file from an S3 bucket.

Setup

  1. Follow steps in References 1 to setup an S3 bucket and upload sample.csv
  2. Follow steps in References 3 to create an AWS Access Key
  3. Follow steps in References 4 to create a local AWS credentials file
  4. Fetch this repo and run the following:
npm install
node index.js
  1. Results:
file downloaded successfully

References

  1. Getting started with Amazon S3 - Demo
  2. Download file from s3 using Node.js
  3. How to create an S3 Bucket and AWS Access Key ID and Secret Access Key for accessing it.
  4. Getting Started in Node.js