Skip to content

Instantly share code, notes, and snippets.

View Troy-Yang's full-sized avatar

杨舟 Troy-Yang

View GitHub Profile
// 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();
@Troy-Yang
Troy-Yang / README.md
Last active March 24, 2019 04:32
starter-es6-project

ES6 starter template

Installation

  1. Clone the repo and start your own:
git clone gist.github.com/74894d99417d3d0e876f267736e85c4f.git
rm -rf .git
git init
  1. Install dependencies:
@Troy-Yang
Troy-Yang / config.json
Created May 12, 2018 08:39
auto upload content to s3 bucket
{
"accessKeyId": "xxxxx",
"secretAccessKey": "xxxxxxx",
"region": "ap-northeast-1"
}