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 @@ -148,14 +148,19 @@ var AWS = require('aws-sdk');
148148```
149149new AWS.DynamoDB.DocumentClient({
150150 region: 'localhost',
151- endpoint: 'http://localhost:8000 '
151+ endpoint: 'http://localhost:8000 ',
152+ accessKeyId: 'bogusaccesskeyid', // needed if you don't have aws credentials at all in env
153+ secretAccessKey: 'bogussecretaccesskey' // needed if you don't have aws credentials at all in env
152154})
153155```
154156e.g. for dynamodb document client sdk
155157```
156158new AWS.DynamoDB({
157159 region: 'localhost',
158- endpoint: 'http://localhost:8000 '
160+ endpoint: 'http://localhost:8000 ',
161+ accessKeyId: 'bogusaccesskeyid', // needed if you don't have aws credentials at all in env
162+ secretAccessKey: 'bogussecretaccesskey' // needed if you don't have aws credentials at all in env
163+
159164})
160165```
161166
You can’t perform that action at this time.
0 commit comments