Skip to content

Commit 89f5c8b

Browse files
authored
fix credentials error for aws-sdk
An error saying "Could not load credentials from any providers error" happens when trying to use migrate with no default aws-sdk profile set. This is a quick fix for this kind of error, which doesn't make the user use a default aws-sdk profile.
1 parent f8379b0 commit 89f5c8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ class ServerlessDynamodbLocal {
138138
});
139139
}else{
140140
dynamoOptions = {
141-
endpoint: 'http://localhost:' + port,
142-
region: 'localhost'
141+
endpoint: 'http://localhost:' + port,
142+
region: 'localhost',
143+
accessKeyId: '1234',
144+
secretAccessKey: '1234'
143145
};
144146
}
145147
return {

0 commit comments

Comments
 (0)