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

209
Views
AWS Dynamodb Credenciales faltantes en la configuración, si usa AWS_CONFIG_FILE, establezca AWS_SDK_LOAD_CONFIG=1

Estoy tratando de agregar elementos en una tabla en dynamodb como en el ejemplo a continuación, pero cuando lo ejecuto aparece este mensaje de error: Missing credentials in the config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

 aws.config.update({ region: "eu-west-1", endpoint: "http://localhost:8080",}) let ddb = new aws.DynamoDB.DocumentClient({ apiVersion: "2012-08-10", }); let params = { TableName: "NameOfTheTable", Item: { uuid: JSON.stringify(132), // random number for testing name: JSON.stringify(req.query.mod), //data i'm passing in }, }; const addMod = ddb.put(params, function (err, data) { if (err) { console.log("Error", err); } else { console.log("Success", data); } }); return res.send(addMod); });

Creo que probablemente me estoy perdiendo accessKeyId y accessSecretKey pero, sinceramente, no entendí cómo configurarlos.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que solicita credenciales locales porque el SDK las busca, parece que esto se ha planteado como un problema .

Puede moverse especificando cualquier cadena supuestamente. Pruebe el siguiente fragmento.

 aws.config.update({ region: "eu-west-1", endpoint: "http://localhost:8080", accessKeyId: “xxxxxx”, secretAccessKey: “xxxxxx” });
over 4 years ago · Santiago Trujillo Report
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!