Creating an identity pool using AWS Cognito

In the previous recipe, we created DynamoDB tables based on the need. Now, it's time to think of securely accessing DynamoDB from the Android app. Unlike what we did for web apps, here we cannot distribute the AWS secret key and access key with each app, as we need to distribute the app to a number of users. If we embed the access and secret keys in the Android application package (APK), then it will make our AWS environment vulnerable.

So, in order to solve this problem, AWS has launched a service called AWS Cognito, which is a great tool to provide limited/required access to app users. In this recipe, we are going to see how to use Cognito to create an identity pool. You can read about AWS Cognito ...

Get DynamoDB Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.