Cognito is used when
we want to give our users an identity so they can interact with our servers and our application.
Cognito is different products
Cognito User Pools
Cognito Identity Pools (Federated Identity Pools)
Cognito Sync
synchronize data from device to Cognito
probably deprecated and replaced by AppSync. But still on exam
AppSync is currently out of scope for the exam,
Cognito User Pools - what can you do
Cognito User Pools -how
Cognito Identity Pools (Federated Identity Pools) how
Cognito Identity Pools (Federated Identity Pools) use case
we wanted to provide temporary access to write to an S3 bucket using a Facebook login.
Cognito Identity Pools (Federated Identity Pools) how internally
Cognito Sync lets you
store user preferences, configuration, and the state of our application, and it has a cross device synchronization capability.
Any platform, could be iOS, Android, etc. You can do offline stuff.
So, if you were to change your preferences offline and then you go back online, then they’re synchronized automatically.
Cognito Sync - to have it working well,
you need to use Federate Identity Pools in Cognito not User Pools.
The data is stored in data sets, and each data set could be up to one megabyte, and we can have up to 20 data sets to synchronize.
SAM
Serverless Application Model
framework for developing and deploying serverless applications
is going to be done in YAML code.
through SAM you can configure
your Lambda functions, your DynamoDB tables, your API Gateway, your Cognito User Pools,
and SAM will help you deploy that automatically to the AWS Cloud
SAM allows you to quickly deploy your Lambda functions using the integration with Code Deploy.
SAM locally
SAM can help you run your Lambda functions, your API Gateway, and your DynamoDB tables locally on your computer so you can do some debugging.
You would like to provide a Facebook login before your users call your API hosted by API Gateway. You need seamlessly authentication integration, you will use
Cognito User Pools directly integration with Facebook Logins