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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"execute-api:GET", | |
"execute-api:POST", | |
"execute-api:Invoke" |
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
// 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'; |