-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local DynamoDB doesn't work. #880
Comments
@Qard Let me know if that helps or if you need an example! |
Yeah, I figured that much out. It seems broken to me that I'd have to set a bunch of configs that it doesn't actually use to get it to work properly though. |
@Qard Your credentials are used by DynamoDB local to maintain separate databases for different users. Your credentials won't be checked, but those configuration parameters do serve a purpose. |
Not according to the docs on local dynamodb. http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html#Tools.DynamoDBLocal.Differences |
If you scroll up on the page you've linked to, you'll see documentation on the I'll let the doc author know that "Regions and distinct AWS accounts are not supported at the client level" is confusingly worded. |
Getting same error when i provided valid credentials, table created, but on aws service, not local This functionality become broken on npm 2.2.32 version |
@Alex0007 |
@chrisradek import vogels from 'vogels'
import requireDir from 'require-dir'
vogels.AWS.config.update({
endpoint: process.env.AWS_DYNAMODB_ENDPOINT,
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: process.env.AWS_REGION
})
module.exports = async function() { // create tables
return new Promise(function (resolve, reject) {
requireDir()
vogels.createTables((err) => {
if (err) {
console.log(`Error creating tables: ${err}`)
return reject(`Error creating tables: ${err}`)
}
resolve()
})
})
} |
@chrisradek @jeskew |
@Alex0007 I'm unable to reproduce the behavior you're experiencing. Have you verified that |
@jeskew |
Glad to hear everything worked out. Let me know if you have any further questions. |
Getting the same error now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm trying to configure the DynamoDB client to connect to a local dynamodb for dev like this:
It throws this config error here:
aws-sdk-js/lib/event_listeners.js
Line 82 in 07e0bb8
Setting region doesn't make sense when connecting to local dynamodb, but If I put it in anyway, it then fails on:
aws-sdk-js/lib/event_listeners.js
Line 73 in 07e0bb8
The text was updated successfully, but these errors were encountered: