Unable to insert record in DynamoDB using a Json file in CLI

0 votes

I am getting this error :

aws dynamodb put-item --table-name EmployeeDetail --item file:\\Desktop\\insert.json --return-consumed-capacity TOTAL

Error parsing parameter '--item': Expected: '=', received: ':' for input:
file:\\Desktop\\insert.json
    ^

Can someone help me with this?

Feb 22 in AWS by Shuvodip
29 views

1 answer to this question.

0 votes

The best practice will be:

running this command after being inside the directory where the file is present.

Here the main problem is that the path is not identified. 

Refer the answer here:

https://www.edureka.co/community/39074/how-to-insert-record-in-dynamodb-stored-in-json-file-using-cli

answered Feb 22 by Priyaj
• 56,160 points

Related Questions In AWS

0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,090 points
2,423 views
–1 vote
1 answer

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,480 points
5,444 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer
0 votes
1 answer