Socket
Book a DemoInstallSign in
Socket

@exoplay/exobot-db-s3

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exoplay/exobot-db-s3

exobot save-db-to-s3 functions

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
1
Created
Source

exobot-db-s3

Installation

  • npm install --save @exoplay/exobot/exobot-db-s3

A Setup Example

import Exobot from '@exoplay/exobot';
import { readS3, writeS3} from '@exoplay/exobot-db-s3';

const S3_REGION = process.env.S3_REGION;
const S3_ACCESS_KEY_ID = process.env.S3_ACCESS_KEY_ID;
const S3_SECRET_ACCESS_KEY = process.env.S3_SECRET_ACCESS_KEY;
const S3_BUCKET = process.env.S3_BUCKET;

const Bot = new Exobot(BOT_NAME, {
  // ...,
  readFile: readS3(S3_REGION, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_BUCKET),
  writeFile: writeS3(S3_REGION, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_BUCKET),
});

Setup notes

Creating a bucket, access_key, and secret_access_key is an exercise in frustration. Sorry.

You may also need to include "babel-polyfill" for generator support.

License

LGPL licensed. Copyright 2016 Exoplay, LLC. See LICENSE file for more details.

Keywords

exobot

FAQs

Package last updated on 28 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts