Linode Object Storage usage in NodeJS

import { Credentials } from 'aws-sdk';
import S3 from 'aws-sdk/clients/s3';

const s3Client = new S3({
region: process.env.LINODE_OBJECT_STORAGE_REGION,
endpoint: process.env.LINODE_OBJECT_STORAGE_ENDPOINT,
sslEnabled: true,
s3ForcePathStyle: false,
credentials: new Credentials({
accessKeyId: process.env.LINODE_OBJECT_STORAGE_ACCESS_KEY_ID,
secretAccessKey: process.env.LINODE_OBJECT_STORAGE_SECRET_ACCESS_KEY,
}),
})

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Create Stylish HTML Sitemap Page In Blogger

Create Stylish HTML Sitemap Page In Blogger

Starter Code for Quick Web Prototype

Jotai + Atomic Devtools

Some Useful Interview Questions of Javascript (Part-3)

Create section navigation with React and Intersection Observer

How to Linearize a PDF in Node.JS

Implementation of cdc in spark using delta file

Created ansible role to configure HAProxy LB.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bogdan Alexandru Militaru

Bogdan Alexandru Militaru

More from Medium

cs371p Spring 2022 Week 3: Badr Belhiti

Zwannah API Structure Specification (Actors-Supporters Arrangement)

FAQ’S on Node.js development company, India

Internal Representation of Objects in JS