Giter Club home page Giter Club logo

gitlab-webhook-lambda's Introduction

Configuring and Deploying AWS Lambda: Step-by-Step Guide

  1. Fork and clone this repo: https://github.com/diggerhq/gitlab-webhook-lambda.
  2. If necessary, update the serverless.yml file in the cloned repository. This file contains configuration settings for the Lambda function and can be customized to suit your requirements.
  3. Save the GITLAB_TOKENto the SSM (Systems Manager) parameter store. You can choose any path for storing the token, but ensure that the serverless.yml file is updated accordingly if you deviate from the default path. For example, save the GITLAB_TOKENto ssm:/gitlab-dev-webhook-handler/dev/GITLAB_TOKEN.
  4. Do the same for SECRET_TOKEN, update serverless.yml if needed and save token value to ssm parameter (for example ssm:/gitlab-dev-webhook-handler/dev/SECRET_TOKEN)
  5. Make sure that your AWS credentials are properly configured in the command-line interface (CLI). This ensures that you have the necessary permissions to deploy the Lambda function.
  6. Run the command npm run build in the root directory of the cloned repository. This command will build the necessary artifacts for the Lambda function.
  7. Finally, run the command npm run deploy in the same root directory. This will initiate the deployment process for the Lambda function using the configuration specified in the serverless.yml file.

Notes:

[
    {"project": "46465722", "token": "glpat-1212232311"}, 
    {"project": "44723537": "token": "glpat-2323232323"}
]

to deploy

npm run build
serverless deploy

gitlab-webhook-lambda's People

Contributors

veziak 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.