Managing Users with Amazon Cognito User Pool and Identity Pool
Managing Users with Amazon Cognito User Pool and Identity Pool

CLOUD LABS

Managing Users with Amazon Cognito User Pool and Identity Pool

In this hands-on Cloud Lab, we will create a user pool and an identity pool in Amazon Cognito. We will then integrate these pools in a React application through an EC2 instance.

11 Tasks

beginner

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of user pools in Amazon Cognito
Hands-on experience creating temporary credentials to access AWS services using identity pools
Working knowledge of managing users in a React app using Amazon Cognito
Hands-on experience deploying a React app on an EC2 instance

Technologies
AWS logoAWS
Cognito
EC2
DynamoDB logoDynamoDB
Skills Covered
Using AWS Cloud Services
Cloud Lab Overview

Amazon Cognito is a service that allows us to implement customer identity and access management (CIAM) into our mobile and web applications. It provides support with creating users in a user pool or using a third-party identity provider like Google or Apple. Cognito also provides temporary credentials to users to give them access to other AWS services with limited rights.

In this Cloud Lab, you’ll create a user pool in Amazon Cognito. You’ll configure this pool to allow users to sign in using the Cognito user pool or through their Google accounts. You’ll also create an identity pool that will allow users to fetch items in a DynamoDB table. After this, you will create an EC2 instance and then create a React application using that instance. Finally, you will integrate this app with your user pool to allow users to sign in using Amazon Cognito and access a DynamoDB table.

After completing this Cloud Lab, you’ll be able to create and manage users through Amazon Cognito user pools and create temporary credentials to allow users to access AWS services. You’ll also be able to integrate Cognito user pools in a React application.

Following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Cloud Lab Tasks
1.Introduction
Get Started
2.Cognito User Pools
Create a User Pool
Fetch Google Credentials
Add Google as an IdP
3.Cognito Identity Pools
Create a DynamoDB Table
Create an Identity Pool
4.Put it All Together!
Launch an EC2 Instance
Create a React App
Integrate Cognito Pools with the React App
5.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image