Skip to content

ina-stoyanova/gitlab-webhook-lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%