title: How to send http request with nodejs AWS Lambda?
body: <p>I'm using AWS Lambda to drive an Alexa Skill Kit development. In an attempt to track events, I'd like the script to send an HTTP request on launch, however from the cloud logs it appears as though the http.get function is being skipped during the execution process. </p>
  
  <p>The code is shown below (google.com replaces the analytics tracking url - which has been tested in the browser);</p>
  
   <pre class="lang-js prettyprint-override"><code>exports.handler = function (event, context) {
  
      var skill = new WiseGuySkill();
      var http = require('http');
  
      var url = 'http://www.google.com';
      console.log('start request to ' + url)
      http.get(url, function(res) {
          console.log("Got response: " + res.statusCode);
          // context.succeed();
      }).on('error', function(e) {
          console.log("Got error: " + e.message);
          // context.done(null, 'FAILURE');
      });
      console.log('end request to ' + url);
  
      skill.execute(event, context);
  };
  </code></pre>
  
  <p>The context objects have been commented out to allow for 'skill.execute' to function, yet either way this HTTP request is not executing. Only the 'start' and 'end' console.logs are recorded, those internal in the function do not.</p>
  
  <p>Is this a async issue? Thanks.</p>