Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loopback-connector-firehose

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-connector-firehose

Loopback.js connector for Amazon Kinesis Firehose

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

loopback-connector-firehose

Loopback connector for AWS Kinesis Firehose

Usage

First make sure that you have AWS credentials in .aws/credentials file.

Next, make sure that in your datasources.json the something like the following exists:

  "firehose": {
    "name": "firehose",
    "connector": "loopback-connector-firehose",
    "region": "us-west-1",
    "DeliveryStreamName": "delivery-stream-name",
    "ColumnNames": ["messageId","stringData"]
  }

Where ColumnNames is the RedShift column name for which your delivery stream has been constructed.

This connector is a non-database connector, which means that standard API representing CRUD operations does not get created by default. Instead it binds the send remoting method to the model.

The data that gets sent to it will be formed into pipe delimited string, which will then be sent out.

If data being passed into the connector includes DeliveryStreamName, the connector will use that instead of settings defined one. This is recommended when you have many different delivery streams for a given abstract model defined route.

To use dynamic delivery stream, make sure your abstract model has remoting hook that sets the delivery stream name before remoting:


  MyModel.beforeRemoting( 'send', function( ctx, modelInst, next) {
    ctx.args.data.DeliveryStreamName = "delivery-stream-name";
    next();
  });

Keywords

FAQs

Package last updated on 10 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc