0
votes

I have a react application and I am using AWS amplify. My question is, when I query data from DynamoDB, is the proper way to go through AWS AppSync and then do I have a lambda function that queries the db or does appsync just do that? What is the proper path to do this? Is it React->Appsync->lambda->DynamoDb or am I missing something? Also, does dynamo db need to sit inside of something like an EC2 instance or AWS fargate or can it just sit alone? Thanks!

1

1 Answers

0
votes

You can just do React->AppSync->DynamoDb. AppSync has a first order integration available for DynamoDB meaning that DynamoDB can be an AppSync datasource. So you can query, update, delete items in DynamoDb directly from AppSync without having to go through Lambda.