github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/builtin/providers/aws/test-fixtures/lambda_func.js (about)

     1  var http = require('http')
     2  
     3  exports.handler = function(event, context) {
     4      http.get("http://requestb.in/10m32wg1", function(res) {
     5          console.log("success", res.statusCode, res.body)
     6      }).on('error', function(e) {
     7          console.log("error", e)
     8      })
     9  }