This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const app = express() | |
| const port = 80 | |
| const bodyParser = require('body-parser') | |
| const crypto = require('crypto') | |
| const secret = process.env.WEBHOOK_SECRET | |
| app.use( | |
| bodyParser.urlencoded({ | |
| extended: true | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| deploy-lambda $1 | |
| # A little shell script I worked up to deploy Lambda functions from my local dev box | |
| function deploy-lambda { | |
| basedir=$HOME/work | |
| dir=$1 | |
| role=${LAMBDA_ROLE:-arn:aws:iam::123456789012:role/default-role-goes-here} | |
| runtime=${LAMBDA_RUNTIME:-provided} |
NewerOlder