title: SMS text not received but no errors from AWS/Lamda
body: <p>Migrating and EC2 LAMP stack into serverless architecture with Lambda handling the SMS text messages.
  My PHP code also works fine and from the console:</p>
  
  <pre><code>aws sns publish --phone-number 0044xxxxxxxxxx --message boo --region eu-west-1
  </code></pre>
  
  <p>Also works</p>
  
  <p>When I run the NodeJS in Lambda from the command line I get  "Status": 202 but no text.</p>
  
  <p>When I run that same code from the TEST button in the Inline Code Editor on AWS I get "Successful", clean logs but no text..</p>
  
  <p>The code failing is:</p>
  
  <pre><code>// dependencies
  var AWS = require('aws-sdk');
  var sns = new AWS.SNS();
  exports.handler = function(event, context) {
  var params = {
     MessageStructure: 'string',
     PhoneNumber: '0044xxxxxxxxxx',
     Message:'An error occurred'
  
  };
  sns.publish(params, function(err, data) {
  if (err) {
     console.log(err, err.stack); // an error occurred
     context.done(err, 'Finished with Errors!');  
     return;
  }
  else     console.log(data);           // successful response
  });
    context.done(null,'finished');
  };
  </code></pre>
  
  <p>This is also code I got from another question in SO which was shown to work for another user.</p>
  
  <p>Any idea what could be the issue?</p>
  
  <p>Many thanks</p>
  
  <p>Kevin</p>