title: Accessing AWS SSM Parameters in NodeJS
body: <p>I'm trying to get the ssm parameter inside my nodejs project, is IAM credentials I and wrote a test in my elastic beanstalk instance and works. The problem is inside the project. Any ideas why?</p>
  
  <pre><code>// Load the AWS SDK for Node.js
  var AWS = require('aws-sdk');
  
  AWS.config.update({region: 'us-east-1'});
  
  var ssm = new AWS.SSM();
  
  var options = {
    Name: '/test/test', /* required */
    WithDecryption: false
  };
  var parameterPromise =  ssm.getParameter(options).promise();
  
  parameterPromise.then(function(data, err) {
    if (err) console.log(err, err.stack); // an error occurred
    else     console.log(data);           // successful response
  });
  
  </code></pre>