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');
165
165
```
166
166
new AWS.DynamoDB.DocumentClient({
167
167
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
169
171
})
170
172
```
171
173
e.g. for dynamodb document client sdk
172
174
```
173
175
new AWS.DynamoDB({
174
176
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
+
176
181
})
177
182
```
178
183
You can’t perform that action at this time.
0 commit comments