By using AWS re:Post, you agree to the Terms of Use

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 Answer
0

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 picture
answered 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions