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 Antwort
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen