Important: Cognito User Profiles Export Reference Architecture will retire in March 2025. For more information, refer to Build a framework for exporting user profile and group information from your Amazon Cognito user pools. You can also find other solutions in the AWS Solutions Library.
Overview
This AWS Solution helps you export Amazon Cognito user information to facilitate more complex user queries, or to provide resiliency in case of Regional failure or accidental deletion of your users' profiles. It is designed to provide a framework for exporting user profile and group information from a Cognito user pool, allowing you to focus on extending this solution’s functionality, rather than managing the underlying infrastructure operation.
This solution does not export sensitive information, such as user passwords. It also does not support user pools with multi-factor authentication (MFA) activated and advanced security features. For a full list of limitations, refer to the implementation guide.
Benefits
Scheduled export
Added resiliency
Import from Amazon DynamoDB
Technical details
You can automatically deploy this architecture using the implementation guide and the accompanying AWS CloudFormation template.
Step 1
This solution automatically deploys an architecture that periodically exports user profiles, groups, and group memberships from an Amazon Cognito user pool in a primary AWS Region to an Amazon DynamoDB global table in the same Region.
Step 2
The use of a global table allows DynamoDB to asynchronously replicate all updates to a backup Region for added resiliency.
Step 3
In the primary Region, a scheduled Amazon Cloudwatch Events invokes the AWS Step Functions export workflow that examines the primary Cognito user pool. It stores user profiles, groups, and group membership information in the global table.
Step 4
DynamoDB then asynchronously replicates all data to the backup Region.
Step 5
This solution’s Step Functions import workflow is used to populate a new, empty Cognito user pool with data from the global table, allowing you to easily recover user profiles, groups, and group memberships.
- Publish Date
Related content
AvalonBay Communities Inc. migrated to a serverless architecture on AWS, accelerating development by 75 percent while reducing costs by 40 percent and maintaining strong security.
A basic overview of how AWS CloudFormation can be used to automate resource provision. Use cases where AWS CloudFormation is used to repeatedly and predictably create groups of resources is covered in this course. A demonstration in designing an AWS CloudFormation template for resource provisioning is also covered.
In this APN Navigate technical course, you will be introduced to the architecture and features of Amazon DynamoDB. The course provides a tailored path for AWS Partner Network (APN) Partners to learn about core components of Amazon DynamoDB, including the table, global secondary index, and local secondary index. You will also review important features such as transactions, automatic scaling, and global tables.
This is an introductory course on AWS Step Functions, an AWS service that makes it easy to coordinate the components of distributed applications and microservices using visual workflows. In this course, we will discuss the rationale for using AWS Step Functions and highlight key service concepts such as state types, visual workflow, and Amazon State Language. A demonstration of AWS Step Functions will also be included in the course.