You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Load credentials and set region from JSON file
AWS.config.loadFromPath('config/config.json');
//AWS.config.update({region: 'us-east-1'});
var $db = new AWS.DynamoDB();
var DynamoDB = require('@awspilot/dynamodb')($db);
But I still get
ConfigError: Missing region in config error .
Hi,
I am my config.json contains region. I am using
// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Load credentials and set region from JSON file
AWS.config.loadFromPath('config/config.json');
//AWS.config.update({region: 'us-east-1'});
var $db = new AWS.DynamoDB();
var DynamoDB = require('@awspilot/dynamodb')($db);
But I still get
ConfigError: Missing region in config error .
Config.json looks like
{ "accessKeyId": "XXXXXXXXXX",
"secretAccessKey": "##############",
"region": "us-east-1"
}
The text was updated successfully, but these errors were encountered: