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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠