最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What should be the endpoint URL when not using the Dynamo DB local? - Stack Overflow

programmeradmin7浏览0评论

I am trying to fetch some Location Coordinates from a Dynamo DB table on a web app which are updated periodically by an android app. Since I am new to JavaScript, so I am following this tutorial.

But I don't want to use local version of Dynamo DB as my table is updated by an android app & that table is not a local one. So what should be the endpoint URL instead of http://localhost:8000.Please help me out with this.

I am trying to fetch some Location Coordinates from a Dynamo DB table on a web app which are updated periodically by an android app. Since I am new to JavaScript, so I am following this tutorial.

But I don't want to use local version of Dynamo DB as my table is updated by an android app & that table is not a local one. So what should be the endpoint URL instead of http://localhost:8000.Please help me out with this.

Share Improve this question edited Apr 3, 2019 at 3:26 Anshuman Parashar asked Apr 2, 2019 at 9:30 Anshuman ParasharAnshuman Parashar 1271 gold badge2 silver badges10 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 9

You have to remove the following lines from the config definition:

endpoint: 'http://localhost:8000',
accessKeyId: "fakeMyKeyId",
secretAccessKey: "fakeSecretAccessKey"

After that you need to set up the AWS Credentials in your local machine. You can use this tutorial: https://docs.aws.amazon./sdk-for-java/v1/developer-guide/setup-credentials.html

When the Credentials is valid, the sdk will use external tables. You can easily test the credentials with aws dynamodb list-tables mand.

Most Amazon Web Services offer a Regional endpoint that you can use to make your requests. The general syntax of a Regional endpoint is as follows.

protocol://service-code.region-code.amazonaws.

For Example:

Dynamodb: https://dynamodb.us-west-2.amazonaws.

SNS: https://sns.us-east-1.amazonaws.

From link here: https://docs.aws.amazon./general/latest/gr/rande.html

发布评论

评论列表(0)

  1. 暂无评论