File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,19 @@ var AWS = require('aws-sdk');
165165```
166166new AWS.DynamoDB.DocumentClient({
167167 region: 'localhost',
168- endpoint: 'http://localhost:8000 '
168+ endpoint: 'http://localhost:8000 ',
169+ accessKeyId: 'DEFAULT_ACCESS_KEY', // needed if you don't have aws credentials at all in env
170+ secretAccessKey: 'DEFAULT_SECRET' // needed if you don't have aws credentials at all in env
169171})
170172```
171173e.g. for dynamodb document client sdk
172174```
173175new AWS.DynamoDB({
174176 region: 'localhost',
175- endpoint: 'http://localhost:8000 '
177+ endpoint: 'http://localhost:8000 ',
178+ accessKeyId: 'DEFAULT_ACCESS_KEY', // needed if you don't have aws credentials at all in env
179+ secretAccessKey: 'DEFAULT_SECRET' // needed if you don't have aws credentials at all in env
180+
176181})
177182```
178183
You can’t perform that action at this time.
0 commit comments