Is it possible to sync mobile local data with one central dynamodb using cognito-sync?

I'm new to AWS services and want to understand if dynamodb and cognito dynamics can be used in this specific scenario:

  • publish data from the company's office to several tables on one central dynamodb
  • use cognito sync in the mobile app to periodically get these tables copied to local storage on the mobile device (one-way sync from the central speaker to remote mobile devices).

I understand that cognito sync is usually used to sync user profile data, but I would like to understand if it can be used differently (one dynamodb repository for all authorized mobile users).

Thanks, Mario

+3


source to share


2 answers


No, Amazon Cognito Sync provides its own identity store (that is: storage not shared between users of your application), but if you want to have a shared DynamoDB database, you can still use Amazon Cognito Identity with a role that grants read access to these tables for your users.



Albert

+4


source


You can use AWS Cognito Sync Events to run AWS Lambda. Then, use the Cognito Sync data passed to the event to update the AWS Dynamodb table.



+3


source







All Articles