Skip to content

Commit d44faa7

Browse files
author
Chris LeBlanc
authored
Add credentials in the event no awscli credentials are available.
1 parent 5e12d93 commit d44faa7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,19 @@ var AWS = require('aws-sdk');
148148
```
149149
new 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
```
154156
e.g. for dynamodb document client sdk
155157
```
156158
new 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

0 commit comments

Comments
 (0)