- Clone the repo and start your own:
git clone gist.github.com/74894d99417d3d0e876f267736e85c4f.git
rm -rf .git
git init
- Install dependencies:
{ | |
"accessKeyId": "xxxxx", | |
"secretAccessKey": "xxxxxxx", | |
"region": "ap-northeast-1" | |
} |
// https://docs.aws.amazon.com/zh_cn/sdk-for-javascript/v2/developer-guide/dynamodb-example-document-client.html | |
// Load the AWS SDK for Node.js | |
var AWS = require('aws-sdk'); | |
AWS.config.loadFromPath('./config.json'); | |
// Create DynamoDB document client | |
var docClient = new AWS.DynamoDB.DocumentClient({ apiVersion: '2012-08-10' }); | |
deleteItem(); |