title: Send SMS with Amazon SNS in node js : Invalid parameter: PhoneNumber Reason: +XXXX is not valid to publish
body: <p>Here is my code for sending SMS to a particular number with AWS sms service.</p>
  
  <pre><code>var AWS = require('aws-sdk');
  
          AWS.config.update({
              accessKeyId: '{ID}',
              secretAccessKey: '{KEY}',
              region: 'us-east-2'
          });
          var sns = new AWS.SNS();
  
          var params = {
              Message: 'this is a test message',
              MessageStructure: 'text',
              PhoneNumber: '+XXXXXXXX'
          };
  
          sns.publish(params, function(err, data) {
              if (err) console.log(err, err.stack); // an error occurred
              else     console.log(data);           // successful response
          });
  </code></pre>
  
  <p>But i got the following error in console</p>
  
  <blockquote>
    <p>'InvalidParameter: Invalid parameter: PhoneNumber Reason: +XXXXXX is
    not valid to publish</p>
  </blockquote>