Giter VIP home page Giter VIP logo

auditing-store-events-lambda's Introduction

Lambda to store auditing events coming from a Kinesis stream

Architecture

AWS Lambda runs on node.js 4.3. This package allows you to write ES6 code, compile, package and deploy through RiffRaff.

Compilation is done with babel and packaging with webpack.

src/index.js is the entry point of your lambda function. Because AWS already provides you with aws-sdk you don't need to depend on it, it's already available on the global variable AWS.

Any other dependency must be declared in package.json inside dependencies and will be packaged by webpack.

Elastic search

This lamba sends events to elasticsearch, you can configure the endpoint in src/config.json and the elasticsearch domain by sending POST request to the endpoints inside folder elasticsearch

curl -XPOST https://endpoint.es.amazonaws.com/_template/operations -d @elasticsearch/_template/operations

Test

You can test the lambda with mocha running npm test.

test/specs/index.js is the main spec file, the lambda will be called with sample events defined in sampleEvents.fixture.js

While developing you can run mocha --watch

Deploy

You can use Travis to automatically build deployable packages for you. If you want to test your code using AWS console, run npm run build and upload the file generated in tmp/riffraff/packages/lambda/artifact.zip.

Secrets

This lambda includes secrets. They are pulled from S3 during a build and injected in RiffRaff build.json. When building locally, you need valid credentials to read from that bucket. Please use Janus.

auditing-store-events-lambda's People

Contributors

nickpapacostas avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.