← 返回首页
GitHub - probot/example-aws-lambda-sam · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

probot/example-aws-lambda-sam

Go to file
Code

Repository files navigation

More items

Probot & AWS Lambda example

This repository is an example of how to deploy the "Hello, World" of probot apps to AWS Lambda using aws sam.

Local setup

Install dependencies

npm install

Start the server

npm start

Follow the instructions to register a new GitHub app.

Deployment

Get the following details about your GitHub app:

  • APP_ID
  • WEBHOOK_SECRET
  • PRIVATE_KEY
  1. Setup your aws cli creds
  2. set your aws profile by running export AWS_PROFILE=<profile>
  3. run sam build
  4. run sam deploy --guided

Subsequent deploys to the same stack to the default environment...

  1. run sam build
  2. run sam deploy

Debugging locally

There are two options to debug locally.

Debug via unit tests

  1. Intall nyc and mocha: npm install -g nyc mocha
  2. From the VSCode RUN AND DEBUG menu select Mocha 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. See here for more details.
  3. From the VSCode RUN AND DEBUG menu select Launch Probot and click the green arrow to start debugging.

Docker

# 1. Run npm install npm install # 2. Build container docker build -t my-probot-app . # 3. Srouce your .env file export $(cat .env | xargs) # 3. Start container docker run \ -e APP_ID=$APP_ID \ -e PRIVATE_KEY=$PRIVATE_KEY \ -e WEBHOOK_SECRET=$WEBHOOK_SECRET \ my-probot-app

License

ISC

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.