Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Probot & AWS Lamda example using Serverless

License

NotificationsYou must be signed in to change notification settings

probot/example-aws-lambda-serverless

Repository files navigation

This repository is an example of how to deploy the "Hello, World" of probot apps toAWS Lambda usingserverless.

Local setup

Install dependencies

npm install

Start the server

npm start

Follow the instructions to register a new GitHub app.

Deployment

In order to deploy the app from you local environment, follow theServerless user guide for AWS.

If you use this example as a template, make sure to updateserverless.yml and set new values for

  • service
  • app
  • org

Make sure to create the following parameters onhttps://app.serverless.com:

  • APP_ID
  • PRIVATE_KEY
  • WEBHOOK_SECRET

For continuous deployment via GitHub action, copythis repository's deploy workflow and create the following secrets:

  1. SERVERLESS_ACCESS_KEY - You can create a Serverless access key athttps://app.serverless.com/<your org>/settings/accessKeys
  2. AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY - you will likely find your AWS credentials in~/.aws/credentials

Debug via unit tests

  1. Intall nyc and mocha:npm install -g nyc mocha
  2. From the VSCodeRUN AND DEBUG menu selectMocha and click the green arrow to start debugging.

Debug by launching probot locally and sending it a payload

  1. Point your GitHub app to your local using something like smee.io
  2. Copy .env-sample to .env and populate with values specific for your GitHub app. For thePRIVATE_KEY replace newlines with\\n to make the string value a single line.
  3. From the VSCodeRUN AND DEBUG menu selectLaunch Probot and click the green arrow to start debugging.

License

ISC

About

Probot & AWS Lamda example using Serverless

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp