Created
September 14, 2024 12:11
-
-
Save igoralves1/5e817d17f1496ea985561c50c7596bdc to your computer and use it in GitHub Desktop.
DynamoDb SDK V2 - Test Connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://zazu90mvb7.execute-api.us-west-2.amazonaws.com/dev/protected-hello