Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 1.21 KB

aws.lambda.deployment.md

File metadata and controls

21 lines (14 loc) · 1.21 KB

AWS Lambda Deployment

It's required to deploy repo supervisor on AWS Lambda if you want to use the HTML reports and Pull Requests scanning feature.

Pre-requisites:

Lambda configuration

It's the simplest form of deploying an application on AWS Lambda. There needs to be a URL that invokes Lambda function and returns a result. You need to have API Gateway configured in front of Lambda to receive Github webhook calls.

  • Lambda -> Functions -> Create function
    • Function name: repoSupervisor
    • Runtime: Node.js 10.x
  • Lamba -> Functions -> repoSupervisor
    • Add trigger: API Gateway
    • API: Create a new API of HTTP API type

After clicking on the API Gateway icon, you should see a URL of your Lambda function that you can use as a webhook URL for your repository. Since deploying this function is not different than a standard deployment in case of issues, the official documentation from AWS is a recommended reading.