Skip to content

Instantly share code, notes, and snippets.

View uncgopher's full-sized avatar
🎮
Coachify.gg

Joshua uncgopher

🎮
Coachify.gg
View GitHub Profile
@uncgopher
uncgopher / lambda_trigger.js
Last active March 5, 2019 01:18
A NodeJS function for use in AWS Lambda to serve as the middleware between Slack and Rainforest QA.
// used to send API calls to Rainforest
var https = require('https');
// primary function for lambda
exports.handler = (event, context, callback) => {
// API Key
var apiKey = process.env.api_key;
// default msg
var responseTxt = 'Unknown failure';
@uncgopher
uncgopher / lambda_policy.json
Last active March 5, 2019 01:17
Policy to grant public access to an AWS Lambda function.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"execute-api:GET",
"execute-api:POST",
"execute-api:Invoke"