I'm doing:
AWS.config.update({ accessKeyId: process.env['AWS_ACCESS_KEY'], secretAccessKey: process.env['AWS_SECRET_KEY'] })
const dynamoClient = new DynamoDB.DocumentClient()
console.log(dynamoClient)
but it gives:
...
endpoint: Endpoint {
protocol: 'https:',
host: 'dynamodb.undefined.amazonaws.com',
port: 443,
hostname: 'dynamodb.undefined.amazonaws.com',
pathname: '/',
path: '/',
href: 'https://dynamodb.undefined.amazonaws.com/'
}
...
Where do I get (and specify) my endpoint?