How to get, upload and delete an object from s3 using aws-sdk for nodejs
Here's the TLDR.
Create a file to where all the methods will be present.
// s3.js
import * as AWS from '@aws-sdk/client-s3';
const bucket = process.env.AWS_BUCKET_NAME;
const region = process.env.AWS_REGION;
const endpoint = process.env.AWS_ENDPOIN...
harshmaur.com2 min read