Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Amplify datastore from AWS lambda function

In my application, there is functionality that when we upload files in s3 then related AWS Lambda trigger is invoked. When Lambda function trigger I want to store file related data in AWS Amplify data store. Is this possible to access AWS Amplify data store in Lambda function? Any references?

s3 ---> Lambda function trigger ---> Amplify Datastore

Note: I found that we can add data from Lambda function to DynamoDB, but my app is using in AWS Amplify data store.

like image 444
kinjal dhamat Avatar asked Sep 02 '25 15:09

kinjal dhamat


1 Answers

Perform a GraphQL mutation using code like this: https://docs.amplify.aws/lib/datastore/how-it-works/q/platform/js/#writing-data-from-the-appsync-console

like image 119
Richard Avatar answered Sep 05 '25 14:09

Richard