Code Monkey home page Code Monkey logo

socless-sumologic's Introduction

Socless Sumologic

Sumo Logic integrations for the SOCless framework.

Deployment Instructions

Prerequisites

  • A Sumo Logic account
  • Socless Automation Framework deployed in an AWS Account

Deploy socless-sumologic

Clone this repository to your projects folder using the command below

git clone [email protected]:twilio-labs/socless-sumologic.git

Change into the socless-sumologic repository and setup deployment dependencies by running the commands below

npm install
virtualenv venv
. venv/bin/activate

(Optional) Ensure Your Dev/Prod environment matches your Socless Dev/Prod regions

Open the package.json and ensure your config and scripts match what you have configured for your Socless deployment

Deploy to Dev and Prod

Deploy your application to dev and prod by running the commands below. To dev:

npm run dev

To prod:

npm run prod

Feel free to deploy to any other Socless environment you have configured

If your Socless deployment is successful, you will see a URL that ends in /sumologic in your endpoints section. This is your Sumologic Endpoint URL.

Testing

Tests are implemented with tox and automatically clean up artifacts if all tests pass:

npm run test

Tests use the moto library to intercept calls to AWS from boto3 and return a mocked event to the tested function.

Tests are implemented using the tox library to create a virtual environment, install dependencies from functions/requirements.txt plus test dependencies moto and boto3, set environment variables needed for the tested functions, and to initiate pytest.

tests/events folder stores event .json files that can be imported when writing test cases or used to test lambda functions directly via AWS console.

socless-sumologic's People

Contributors

noxasaxon avatar ubaniabalogun avatar twilioyuezhu avatar

Watchers

James Cloos 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.