Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing DynamoDB from client side using javascript?

I am developing an HTML5 mobile application which I am planning to port to Android also using Phonegap. I want to use AWS DynamoDB for storing my users data. I know that amazon has a http api but it is too complicated. Some of my queries are

  1. If I use the HTTP api, wouldn't it expose my credentials? (Same qquery for dynode)
  2. What are the alternatives? I have a EC2 instance so hosting a server is not a problem.

I would appreciate your suggestions on this.

like image 655
Harshil Lodhi Avatar asked Apr 28 '26 00:04

Harshil Lodhi


1 Answers

If you connect directly from your phone application, to dynamodb, you will risk exposing your credentials.

The general way to handle this is to have a json REST api through which the phone application can authenticate and make requests to the datastore. Your application would communicate with this api.

In this case, each user would likely have its own authentication to your server application.

like image 140
datasage Avatar answered Apr 29 '26 14:04

datasage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!