# Amazon Cognito

Cloud service · AWS. Updated 2026-11-12. Page: https://blowstack.com/tools/cloud-services-hub/amazon-cognito

> Amazon Cognito is a cloud service provided by Amazon Web Services (AWS) that provides authentication, authorization, and user management for web and mobile applications.

Practice exams covering Amazon Cognito: [ANS-C01 AWS Certified Advanced Networking - Specialty](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty), [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [SCS-C03 AWS Certified Security - Specialty](https://blowstack.com/practice-exams/aws-certified-security-specialty), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate), [SAP-C02 AWS Certified Solutions Architect - Professional](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional).

## 6 key features of Amazon Cognito

Amazon Cognito offers secure user authentication, is easily scalable, ensures compliance, provides customizable user experiences, and supports data synchronization across devices.

1. **User Authentication**: Amazon Cognito provides user authentication with social identity providers like Google, Facebook, and Amazon, as well as with user pools for direct sign-in functionality.
2. **Security and Compliance**: It ensures data security and compliance by offering features such as encryption at rest and in transit, MFA (Multi-Factor Authentication), and compliance with various certifications and regulations.
3. **Customizable User Experience**: Enables customization of the user experience with UI customization, messages customization, and user pool domains to maintain consistent branding across your applications.
4. **Serverless and Scalable**: Designed to be serverless and scalable, it automatically scales to handle millions of users without requiring any infrastructure management.
5. **Data Synchronization**: Offers data synchronization across devices and platforms, allowing a seamless user experience and access management for your applications.
6. **Anonymous Guest Access**: Identity pools support anonymous guest users, allowing applications to grant access to AWS services without requiring users to sign in.

## Where Amazon Cognito is used

Amazon Cognito is used for secure user authentication and authorization, federated identity management, direct AWS resource access, multi-factor authentication, and creating custom authentication flows for web and mobile applications.

1. **User Authentication and Authorization**: Amazon Cognito facilitates secure user sign-up, sign-in, and access control to web and mobile applications, eliminating the need for backend code to authenticate users and manage user-specific tokens.
2. **Federated Identities**: Cognito supports identity federation that allows users to sign in through social identity providers such as Google, Facebook, and Amazon, as well as enterprise identity providers via SAML 2.0, thus simplifying the login process and enhancing user experience.
3. **Secure Access to AWS Services**: With Cognito, developers can assign user-specific permissions to access AWS resources directly from the front-end application, ensuring a fine-grained access control mechanism.
4. **Multi-factor Authentication**: It provides additional security by enabling multi-factor authentication (MFA), which requires users to verify their identity through multiple methods before being granted access.
5. **Custom Authentication Flows**: Amazon Cognito allows for the creation of custom authentication workflows using AWS Lambda triggers, enabling unique authentication processes tailored to specific business requirements.

## How Amazon Cognito is priced

Amazon Cognito's pricing is primarily based on the number of Monthly Active Users (MAUs), with the first 50,000 being free, and includes additional costs for federation and using custom authentication flows with AWS Lambda.

- **Monthly Active Users (MAUs)**: Amazon Cognito user pools are billed by monthly active users. The standard free tier for direct or social sign-in is 10,000 MAUs per month per account or AWS organization for Lite and Essentials; Plus has no such free tier. Free-tier pricing is unavailable in AWS GovCloud (US).
- **Federation**: Users signing in through SAML or OIDC federation have separate MAU pricing: the first 50 MAUs are free, and additional MAUs cost $0.015 each. Social identity provider sign-ins are included with direct user-pool sign-ins rather than this enterprise federation rate.
- **Custom Authentication Flows**: Using AWS Lambda triggers for custom authentication flows may incur additional costs. These costs are associated with the use of AWS Lambda, which Cognito uses to execute custom scripts for authentication, verification, and other custom processes.
- **Advanced Security Features**: Enabling Advanced Security Features incurs additional MAU charges on top of base user-pool pricing, including when operating in audit mode.
- **SMS Messages**: SMS messages for MFA, registration, password recovery, and phone-number verification are charged separately through Amazon SNS.
- **Email Messages**: Email messages for registration, password recovery, and email-address verification are charged separately through Amazon SES.
- **Cognito Sync**: Cognito Sync charges for stored data and synchronization operations. Eligible customers receive 10 GB of cloud sync storage and 1,000,000 sync operations per month for the first 12 months.
- **Higher API Quotas**: Additional API capacity is charged per incremental request per second above default quotas, with each API category billed separately.
- **Machine-to-Machine Authorization**: M2M authorization is billed monthly per successful token response, with no additional charge for registered app clients.
- **Multi-Region Replication**: Multi-Region replication adds charges to base tier pricing per MAU or successful token request. Each unique user is counted once globally across the primary and secondary Regions.

## Services Amazon Cognito works with

- **[Amazon API Gateway](https://blowstack.com/tools/cloud-services-hub/amazon-api-gateway)**: Cognito can be used to secure RESTful APIs created with API Gateway. It provides user authentication and authorization, allowing only authenticated and authorized users to access API endpoints.
- **[AWS Lambda](https://blowstack.com/tools/cloud-services-hub/aws-lambda)**: Lambda functions can be triggered by events in Cognito, such as user sign-up, sign-in, and attribute updates. This allows for custom authentication workflows, data processing, and other event-driven actions.
- **[Amazon S3](https://blowstack.com/tools/cloud-services-hub/amazon-s3)**: Cognito integrates with S3 to provide secure access to S3 buckets. You can use Cognito to manage permissions and provide users with temporary credentials to access S3 resources.
- **[Amazon DynamoDB](https://blowstack.com/tools/cloud-services-hub/amazon-dynamodb)**: Cognito can be used with DynamoDB to store user profile data and application state. This allows for seamless integration of user data management with your application backend.
- **[AWS Identity and Access Management (IAM)](https://blowstack.com/tools/cloud-services-hub/aws-identity-and-access-management-(iam))**: Cognito integrates with IAM to provide fine-grained access control to AWS resources. It allows you to define roles and policies that dictate what resources users can access based on their authentication and authorization status.
- **[Amazon CloudWatch](https://blowstack.com/tools/cloud-services-hub/amazon-cloudwatch)**: Cognito integrates with CloudWatch for monitoring and logging. You can track metrics related to user authentication, authorization, and usage, and set up alarms for specific events.
- **[Amazon RDS](https://blowstack.com/tools/cloud-services-hub/amazon-rds)**: Cognito can integrate with RDS for storing and managing relational user data. This can be used for applications requiring complex queries and transactions on user data.
- **[Amazon Augmented AI (Amazon A2I)](https://blowstack.com/tools/cloud-services-hub/amazon-augmented-ai-(amazon-a2i))**: Amazon Cognito authenticates members of private workforces used for Amazon A2I human review. Reviewers sign in to the worker portal with accounts in the workforce's Cognito user pool.
- **[Amazon Bedrock AgentCore](https://blowstack.com/tools/cloud-services-hub/amazon-bedrock-agentcore)**: Amazon Cognito user pools can issue access tokens for AgentCore endpoints configured with JWT authentication. AgentCore validates the tokens against the configured Cognito issuer and client settings before allowing access.
- **[Amazon CloudFront](https://blowstack.com/tools/cloud-services-hub/amazon-cloudfront)**: Amazon Cognito provisions a CloudFront distribution when you configure a custom domain for user-pool managed login. The distribution serves the sign-in endpoints over HTTPS using the certificate associated with that custom domain.
- **[Amazon Data Firehose](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-firehose)**: Amazon Cognito can export user authentication event logs to an Amazon Data Firehose delivery stream. This supports delivering threat-protection activity to a centralized logging or analytics destination.
- **[Amazon Elastic Kubernetes Service (Amazon EKS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-kubernetes-service-(amazon-eks))**: Amazon Cognito user pools can act as an OpenID Connect identity provider for an EKS cluster. EKS validates Cognito-issued identity tokens, and Kubernetes role-based access control determines what authenticated users can do.
- **[Amazon EventBridge](https://blowstack.com/tools/cloud-services-hub/amazon-eventbridge)**: Amazon Cognito API activity recorded by CloudTrail can be matched by EventBridge rules. For example, a rule can start an administrative workflow when a user pool is created or its configuration changes.
- **[Amazon Kinesis Data Streams](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-streams)**: Amazon Cognito Sync can stream changes to identity-pool datasets into Kinesis Data Streams. Consumers can process these updates for analytics or synchronize the data with another system.
- **[Amazon Location Service](https://blowstack.com/tools/cloud-services-hub/amazon-location-service)**: Amazon Cognito identity pools provide an authentication option for applications accessing Amazon Location Service. Authenticated and guest identities can receive different IAM permissions, such as permission to display a map without permission to update a tracker.
- **[Amazon OpenSearch Service](https://blowstack.com/tools/cloud-services-hub/amazon-opensearch-service)**: Amazon Cognito provides sign-in for OpenSearch Dashboards on OpenSearch Service domains configured with Cognito authentication. User pools authenticate users, while identity pools and IAM roles determine their access to the domain.
- **[Amazon Route 53](https://blowstack.com/tools/cloud-services-hub/amazon-route-53)**: Amazon Cognito custom login domains can use Route 53 alias records pointing to the CloudFront distribution that Cognito creates. This makes the user-pool sign-in pages available at an application-owned hostname.
- **[Amazon SageMaker](https://blowstack.com/tools/cloud-services-hub/amazon-sagemaker)**: Amazon Cognito user pools authenticate private-workforce members for SageMaker labeling and human-review tasks. Workforce administrators can manage worker accounts and organize workers into teams.
- **[Amazon SageMaker Ground Truth](https://blowstack.com/tools/cloud-services-hub/amazon-sagemaker-ground-truth)**: Amazon Cognito supplies user accounts and authentication for Ground Truth private labeling workforces. Workers sign in to the labeling portal and receive tasks assigned to their work teams.
- **[Amazon Simple Email Service (Amazon SES)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-email-service-(amazon-ses))**: Amazon Cognito user pools can use Amazon SES to send verification, password-reset, and other user-account email messages. You can configure an SES-verified sending identity and a configuration set for email delivery tracking.
- **[Amazon Simple Notification Service (Amazon SNS)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-notification-service-(amazon-sns))**: Amazon Cognito uses Amazon SNS to deliver SMS messages for phone-number verification, account recovery, and SMS multi-factor authentication. A user-pool IAM role authorizes Cognito to send these messages.
- **[Amazon Verified Permissions](https://blowstack.com/tools/cloud-services-hub/amazon-verified-permissions)**: Amazon Cognito user pools can be configured as identity sources for Verified Permissions policy stores. Applications can submit Cognito tokens to token-based authorization APIs to evaluate whether a signed-in user may perform an action on a resource.
- **[AWS Amplify](https://blowstack.com/tools/cloud-services-hub/aws-amplify)**: Amazon Cognito powers Amplify authentication features, including user registration, sign-in, multi-factor authentication, and federated sign-in. Amplify can provision the user pools and identity pools and provide application components that manage authentication sessions.
- **[AWS AppSync](https://blowstack.com/tools/cloud-services-hub/aws-appsync)**: Amazon Cognito user pools are a built-in authorization option for AppSync APIs. AppSync validates user-pool tokens and can use their claims and group memberships to control access to GraphQL operations and fields.
- **[AWS Certificate Manager (ACM)](https://blowstack.com/tools/cloud-services-hub/aws-certificate-manager-(acm))**: Amazon Cognito uses an ACM certificate to secure a custom domain for user-pool managed login. The certificate for this CloudFront-backed custom domain must be available in the US East (N. Virginia) Region.
- **[AWS CloudFormation](https://blowstack.com/tools/cloud-services-hub/aws-cloudformation)**: Amazon Cognito resources can be provisioned and managed with CloudFormation, including user pools, app clients, domains, identity providers, identity pools, and role attachments. This lets authentication infrastructure be deployed reproducibly alongside an application.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: Amazon Cognito integrates with CloudTrail to record supported API activity, including administrative changes and supported authentication operations. These records identify the request, caller, time, and other details needed for auditing and investigation.
- **[AWS Config](https://blowstack.com/tools/cloud-services-hub/aws-config)**: AWS Config can record supported Amazon Cognito resource configurations and evaluate user pools against managed rules. Checks include settings such as multi-factor authentication, password policies, and advanced security.
- **[AWS Control Tower](https://blowstack.com/tools/cloud-services-hub/aws-control-tower)**: AWS Control Tower provides proactive controls for Amazon Cognito user-pool configurations. These controls can check CloudFormation deployments for required security settings, such as multi-factor authentication and strong password policies.
- **[AWS Firewall Manager](https://blowstack.com/tools/cloud-services-hub/aws-firewall-manager)**: Amazon Cognito user pools can be protected by AWS WAF policies managed through Firewall Manager. Administrators can centrally apply web ACL protections to in-scope user pools across organizational accounts.
- **[AWS IoT Core](https://blowstack.com/tools/cloud-services-hub/aws-iot-core)**: Amazon Cognito identity pools can supply temporary credentials for clients connecting to AWS IoT Core over MQTT over WebSockets. AWS IoT policies attached to Cognito identities can control which topics those clients may publish to or subscribe to.
- **[AWS Key Management Service (AWS KMS)](https://blowstack.com/tools/cloud-services-hub/aws-key-management-service-(aws-kms))**: Amazon Cognito uses AWS KMS to encrypt the verification codes and temporary passwords passed to custom email and SMS sender Lambda triggers. The sender function decrypts these values with the configured KMS key before delivering them.
- **[AWS Resource Groups and Tag Editor](https://blowstack.com/tools/cloud-services-hub/aws-resource-groups-and-tag-editor)**: Amazon Cognito user pools and identity pools support tags that can be managed through Tag Editor. Tag-based resource groups can organize these resources by application, environment, or another shared label.
- **[AWS Security Token Service (AWS STS)](https://blowstack.com/tools/cloud-services-hub/aws-security-token-service-(aws-sts))**: Amazon Cognito identity pools use AWS STS to obtain temporary AWS credentials for authenticated or guest identities. Cognito role mappings and role trust policies determine which IAM role an identity can assume.
- **[AWS Step Functions](https://blowstack.com/tools/cloud-services-hub/aws-step-functions)**: Step Functions can invoke Amazon Cognito APIs through AWS SDK integrations to automate identity-management workflows. For example, a state machine can create a user, assign the user to a group, and perform follow-up provisioning steps.
- **[AWS Verified Access](https://blowstack.com/tools/cloud-services-hub/aws-verified-access)**: Amazon Cognito user pools can serve as an OpenID Connect identity provider for Verified Access. Verified Access authenticates users through Cognito and can evaluate returned identity claims in policies controlling application access.
- **[AWS WAF](https://blowstack.com/tools/cloud-services-hub/aws-waf)**: Amazon Cognito user pools can be associated with AWS WAF web ACLs to filter requests to supported user-pool endpoints. Rules can block malicious requests or apply rate-based protections to authentication traffic.
- **[Elastic Load Balancing (ELB)](https://blowstack.com/tools/cloud-services-hub/elastic-load-balancing-(elb))**: Amazon Cognito integrates with Application Load Balancer authentication actions on HTTPS listeners. The load balancer redirects unauthenticated users to Cognito, maintains the authentication session, and forwards identity information to the application.

## What is Amazon Cognito

Amazon Cognito is a sophisticated service offered by Amazon Web Services (AWS) that provides authentication, authorization, and user management for web and mobile applications. The service is designed to be highly scalable, secure, and flexible, thus enabling developers to add user sign-up, sign-in, and access control to their applications quickly and easily, without worrying about the back-end infrastructure and security mechanisms typically associated with these features.

At its core, Amazon Cognito allows applications to authenticate users through various methods including social identity providers such as Google, Facebook, and Amazon, as well as through enterprise identity providers via SAML 2.0. Moreover, it provides its own secure and scalable user directory that can scale to hundreds of millions of users. This is particularly appealing for developers looking to manage user identities and federations without having to maintain a separate backend system for this purpose.

For machine-to-machine authorization, app clients use the OAuth 2.0 client credentials flow to exchange credentials for access tokens that they can use to communicate with services. Access-token validity can be configured per service.

API request-rate quotas apply per AWS account and Region and are shared across user pools in that Region. A quota increase in one Region does not increase the request rate available in another Region.

When configuring a user pool, you can choose Lite, Essentials, or Plus. Lite provides basic registration, authentication, and user management. Essentials adds Managed Login, passwordless sign-in with passkeys or email and SMS one-time passwords, access-token customization, and password-reuse prevention. Plus adds threat protection, including risk-based adaptive authentication, compromised-credential detection, and authentication-event log export. Essentials is the default for new user pools, and pools can switch tiers.

One of the standout features of Amazon Cognito is its ability to offer seamless authentication and authorization across multiple devices and platforms. A signed-in session is not automatically transferred from one device to another; a new device generally requires authentication unless the application implements a secure session-transfer mechanism. This is facilitated through the use of tokens which are securely managed by Cognito. Data synchronization is another noteworthy feature of Amazon Cognito. It allows user data such as app preferences or game states to be synchronized across various devices, enabling a consistent user experience regardless of the platform being used. This data is stored in the AWS Cloud, which ensures its availability and scalability.

Amazon Cognito also places a strong emphasis on security. It encrypts data at rest and in transit, and operates in Amazon highly secure data centers. It allows for multi-factor authentication (MFA) and the use of strong password policies to enhance security further. The service is compliant with various industry standards, including ISO/IEC 27001, ensuring that applications using Cognito adhere to strict data protection regulations.

Multi-Region replication can synchronize user data, credentials, and user-pool configurations to additional AWS Regions for regional failover while preserving active sessions. It requires a multi-Region customer managed AWS KMS key and, where applicable, a multi-Region OIDC issuer configuration; regional failover is configured to meet your operational requirements.

In terms of integration, Amazon Cognito provides APIs and SDKs for a wide range of platforms including Android, iOS, and the web, making it a versatile option for developers across various environments. This ease of integration, coupled with its comprehensive feature set, makes Amazon Cognito a powerful solution for managing user identities and ensuring secure and seamless access to web and mobile applications.

In essence, Amazon Cognito relieves developers of the complexity associated with creating, maintaining, and securing a system for user management and authentication, allowing them to focus on developing the core features of their applications. Its scalability ensures that the solution remains viable as the application user base grows, which is a critical consideration for any online platform looking to expand its reach.

## Free Amazon Cognito tools

- [Amazon Cognito JWT Inspector](https://blowstack.com/tools/aws-cognito-jwt-inspector): Decode an ID or access token: its claims explained, and why an API rejects it - expiry, token type, user pool, app client.

## Concepts related to Amazon Cognito

- [Authentication](https://blowstack.com/tools/cloud-concepts-hub/authentication): Authentication is the process of verifying the claimed identity of a person, application, or device before treating it as that identity.
- [Clock Skew](https://blowstack.com/tools/cloud-concepts-hub/clock-skew): Clock skew is the difference between the times reported by two clocks at the same instant.
- [Identity Federation](https://blowstack.com/tools/cloud-concepts-hub/identity-federation): Identity federation allows one security domain to accept identities authenticated by a trusted identity provider instead of maintaining separate credentials for them.
- [JSON Web Tokens](https://blowstack.com/tools/cloud-concepts-hub/json-web-tokens): JSON Web Tokens are a standardized format for carrying claims between parties, commonly used as signed bearer tokens for application authentication and authorization.
- [Multi-Factor Authentication](https://blowstack.com/tools/cloud-concepts-hub/multi-factor-authentication): Multi-factor authentication verifies an identity using two or more distinct categories of evidence before granting access.
- [OAuth 2.0](https://blowstack.com/tools/cloud-concepts-hub/oauth-2_0): OAuth 2.0 is an authorization framework that lets applications obtain limited access to protected resources using access tokens rather than a resource owner's credentials.
- [OpenID Connect](https://blowstack.com/tools/cloud-concepts-hub/openid-connect): OpenID Connect is an identity protocol built on OAuth 2.0 that lets applications verify identities through a trusted identity provider.
- [SAML 2.0](https://blowstack.com/tools/cloud-concepts-hub/saml-2_0): SAML 2.0 is an XML-based federation standard that lets an identity provider communicate authenticated identities and attributes to a trusted service provider.
- [Token Validation](https://blowstack.com/tools/cloud-concepts-hub/token-validation): Token validation is the process of checking that a presented security token is authentic, acceptable for its intended recipient and purpose, and valid at the time of use.
