Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

394
Views
SES sending Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 in nodejs

I am sending a mail through ses in nodejs.

exports.sendEmail = async () => {
const SESConfig = {
  accessKeyId: "xxxxxxx",
  accessSecretKey: "xxxxxxxxxxxxxx",
  region: "us-east-1",
}
AWS.config.update(SESConfig);

// Create sendEmail params
var params = {
  Destination: {
    ToAddresses: [
      "xxx@xxx.xxx",
      /* more items */
    ],
  },
  Message: {
    /* required */
    Body: {          Text: {
        Charset: "UTF-8",
        Data: "TEXT_FORMAT_BODY",
      },
    },
    Subject: {
      Charset: "UTF-8",
      Data: "Test email",
    },
  },
  Source: "xxx@xxx.xxx" /* required */,
};

var sendPromise = new AWS.SES({ apiVersion: "2010-12-01" })
  .sendEmail(params)
  .promise();

// Handle promise's fulfilled/rejected states
await sendPromise
  .then(function (data) {
    console.log('err', data)
    console.log(data.MessageId);
  })
  .catch(function (err) {
    console.log('err', err)
    console.error(err, err.stack);
  });
};

When i call this function in my api then it's saying Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 I had added same mail in from and to which is verified on aws ses

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!