title: AWS: SNS sending SMS message to multiple phone numbers
body: <p>From my mobile app, I'd like to send the following message to multiple phone numbers:</p>
  
  <p>"John Doe invited you to a meeting.  Download meeting material <a href="http://alink.com" rel="nofollow noreferrer">http://alink.com</a>"</p>
  
  <p>This message will be <code>Transactional</code></p>
  
  <p>I have a Node.js running on an EC2.  I am a mobile app developer and new to AWS.  </p>
  
  <p>In my SNS console I created a Topic.  This created an ARN: <code>arn:aws:sns:us-east-1:xxx1234xxxx:MyAppName</code></p>
  
  <p>I have the following code in NodeJS:</p>
  
  <pre><code>var AWS = require('aws-sdk');
  var auth = require('../snsAuth');
  
  AWS.config.update = auth
  
  var sns = new AWS.SNS();
  var params = {
      Message: "John Doe invited you to a meeting. Download meeting material http://alink.com",
      MessageStructure: 'string',
      PhoneNumber: '1xxx1234',
      Subject: 'MyApp'
  };
  
  sns.setSMSAttributes(
      {
          attributes: {
              DefaultSMSType: "Transactional"
          }
      },
      function (error) {
          if (error) {
              console.log(error);
          }
      }
  );
  
  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>I don't know how to send multiple phone numbers as parameters.  Based on the docs, it appears that I need to subscribe to a Topic first and then publish the topic.  If those are the right steps, how do I do that in code?</p>