terraform/builtin/providers/aws/test-fixtures/lambda_func.js

10 lines
264 B
JavaScript
Raw Normal View History

var http = require('http')
exports.handler = function(event, context) {
http.get("http://requestb.in/10m32wg1", function(res) {
console.log("success", res.statusCode, res.body)
}).on('error', function(e) {
console.log("error", e)
})
}