Skip to content
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

Location of config.json #5

Closed
wdarsono opened this issue Nov 10, 2014 · 2 comments
Closed

Location of config.json #5

wdarsono opened this issue Nov 10, 2014 · 2 comments

Comments

@wdarsono
Copy link

Dear Sir,
I am new to nodejs and DynamoDB.
Can you please advise where should I put the config.json file?

I tried to export a table in the DynamoDB into a csv file with the following command:
node dynamoDBtoCSV.js -d -t test2

However, it kept on giving me the following error:
{ [UnexpectedParameter: Unexpected key 'Limit' found in params]
message: 'Unexpected key 'Limit' found in params',
code: 'UnexpectedParameter',
time: Mon Nov 10 2014 15:27:11 GMT+0800 (Malay Peninsula Standard Time) }

Here is the content of my config.json:
{
"accessKeyId": "XXXXXXXXXXXXXXXXX",
"secretAccessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"region": "ap-northeast-1"
}

Please kindly advise.

Many thanks,
Willie

@edasque
Copy link
Owner

edasque commented Nov 10, 2014

Seems like a dupe of #4 , can you check?

@wdarsono
Copy link
Author

Hi Erik,
Thanks for the respond.

The region is correct and the location of config.json file seems correct as well because I managed to get output.csv file (with the correct content) when I ran the following command:
node dynamoDBtoCSV.js -t table1 > output.csv
However, I still got the same error message when I tried to get some info about the table (i.e. how many rows) using the following command:
node dynamoDBtoCSV.js -t table1 -d

Many thanks,
Willie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants