Read/Write data from existing dynamoDB table using AWS Amplify with IOS app

0

Hello, I am looking to write/read data from an existing DynanoDB table using AWS amplify with an IOS app. I have been able to initialize Amplify through the terminal and create tables in DynamoDB. I have also been able to import the existing table into my project, but unable to read or write anything to/from that table. My questions is how do I read and write to that existing table when it was not created through AWS Amplify using the datastore and API plugins.

1 個回答
1

You can think of DynamoDB as a web service, as long as you have permissions to access it you will be able to do so over the internet. For that reason, I would first look at the IAM permissions needed to interact with DynamoDB.

For example, lets say you interact with DynamoDB via API Gateway -> AWS Lambda -> DynamoDB, in this case you would need to ensure the Lambda has permissions to read/write to DynamoDB.

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/iam-policy-specific-table-indexes.html

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南