Skip to content

Instantly share code, notes, and snippets.

@igoralves1
Created September 14, 2024 12:11
Show Gist options
  • Save igoralves1/5e817d17f1496ea985561c50c7596bdc to your computer and use it in GitHub Desktop.
Save igoralves1/5e817d17f1496ea985561c50c7596bdc to your computer and use it in GitHub Desktop.
DynamoDb SDK V2 - Test Connection
const AWS = require("aws-sdk");
AWS.config.update({ region: 'us-west-2' });
const dynamodb = new AWS.DynamoDB();
dynamodb.listTables((err, data)=>{
if(err) {
console.log(err);
} else {
console.log(data);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment