Git Product home page Git Product logo

serverless-code-commit-repo-event-notifier's Introduction

Serverless AWS CodeCommit Repository Event Notifier

A simple lambda function that gets triggerred in response to an AWS CodeCommit repository events and update the team in slack.

Fig : Serverless AWS CodeCommit Repository Event Notifier

Follow this article in Youtube

  1. Pre-Requisities

    We will need the following pre-requisites to successfully complete this activity,

  2. Configure Lambda Function

    • The python script is written(and tested) in Python 3.7.
    • Copy the code from serverless-code-commit-repo-event-notifier in this repo to the lambda function
    • Optional: Add slack slack_webhook_url in the environment variable
    • Save the lambda function
  3. Configure Lambda Triggers

    • Choose AWS CodeCommit from the list of services.

    Fig : Serverless AWS CodeCommit Repository Event Notifier

    • In Repository name, choose your repository name.

    • In Trigger name, enter a name for the trigger.

    • In Events, choose the repository events that trigger the Lambda function, for example, choose All repository events.

    • In Branches, Choose All branches, if you want the trigger to apply to all branches of the repository.

    • In Custom data, Optional: Leave empty for now.

    • Choose Next.

    Now your lambda function should be triggered when ever there is a CodeCommit event in your repository

  4. Testing the solution

    Create a new commit/branch in your repo, you should be getting the message in Slack(if configured).

serverless-code-commit-repo-event-notifier's People

Watchers

 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.