title: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
body: <p>When I am trying to load AWS credentials in my project it gives back an error.</p>
  <p>When using credentials in plain text everything works good but when I am trying to use environment variables it's not working.</p>
  <p>Error message. :</p>
  <pre><code>Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
  </code></pre>
  <p>Here is my tried code :</p>
  <pre><code>const AWS = require('aws-sdk');
  
  
  const SESConfig = {
      apiVersion: &quot;2010-12-01&quot;,
      accessKeyId: process.env.AWS_SECRET_KEY,
      accessSecretKey: process.env.AWS_SECRET_KEY,
      region: &quot;us-east-1&quot;
  }
  AWS.config.update(SESConfig);
  var sns = new AWS.SNS()
  var sns = new AWS.SNS();
  
  function sendSMS(to_number, message, cb) {
  
      sns.publish({
          Message: message,
          Subject: 'Admin',
          PhoneNumber:to_number
      }, cb);
    
    }
    
    // Example
    const PhoneNumberArray = ['any mobile number']
    PhoneNumberArray.forEach(number =&gt; {
      sendSMS(number, &quot;Lorem Ipsum is simply dummy text of the printing and typesetting industry.&quot;, (err, result)=&gt;{
          console.log(&quot;RESULTS: &quot;,err,result)
        })
    })
   
  </code></pre>