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 an HTML form? | How to style an HTML form?

How to use AWS Vault to secure environment variables in Nodejs

KUDAPACH_TODOLIST

How to get PDF annotations including comments in Node.JS

Implementing Angular template references in AngularJS with a 10-line directive

McKinley Beach Lot 4s5s, Framing Started

McKinley Beach Lot 4s5s, Framing Started

Experience So Far Working On A Google Chrome Extension

Another linked list article…

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

Create events on Google calendar using Google Calendar API in Node.js

AsyncLocalStorage on NodeJS

Launching full support for Postgres Identity columns in TypeORM

Sequelize ORM in our Final Project