2.4.0 • Published 22 days ago

@seneca/s3-store v2.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

Seneca S3 Store

Seneca S3 Store is a plugin for Seneca

Entity store that uses AWS S3. This store can also handle JSONL documents and binary files. This plugin integrates with Seneca Gateway Lambda to support S3 events. A local mode can simulate S3 behaviour for local development and testing.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

@seneca/s3-store

VoxgigThis open source module is sponsored and supported by Voxgig.

Install

$ npm install @seneca/s3-store

Quick Example

const Seneca = require('seneca')
// import Seneca from 'seneca'

let seneca = Seneca()
  .use('entity', { mem_store: false })
  .use('s3-store', {
    map: {
      'foo': '*' // All 'foo' entity operations
    },
    
    // Settings shared by all S3 Operations
    shared: {
      Bucket: 'my-aws-bucket-name'
    },
    
    // S3 client settings
    s3: {
      Region: 'us-east-1'
    }
  })
  
// Saves the file foo0.json to the bucket.
seneca.entity('foo').save$({id$:'foo0', x:1})

// The file contents will be:
// {"id":"foo0","x":1,"entity$":"-/-/foo"}

More Examples

Motivation

Reference

Options

  • debug : boolean
  • prefix : string
  • suffix : string
  • folder : any
  • s3 : object
  • map : object
  • shared : object
  • local : object
  • ent : object
  • init$ : boolean

Action Patterns

Action Descriptions

Support

Contributing

Background

2.4.0

22 days ago

2.3.0

3 months ago

2.2.0

3 months ago

2.0.0

4 months ago

1.1.0

4 months ago

1.0.0

5 months ago

0.4.1

5 months ago

0.4.0

5 months ago

0.4.2

5 months ago

0.3.0

5 months ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago