- Newest
- Most votes
- Most comments
Amazon Cognito offers a generous free tier that allows you to get started without incurring costs. The free tier includes up to 50,000 monthly active users for Cognito User Pools or 50 monthly federated users (for social logins like Azure AD, Google, Facebook, Apple, and Amazon).
To implement Cognito within the free tier for your startup, you have several options:
-
Managed Login Approach: This is the lowest-effort integration with Cognito user pools. It provides ready-to-use web-based sign-in pages that handle authentication flows, including third-party sign-in and multi-factor authentication. Your application only needs to process the authentication outcome.
-
AWS SDK Integration: You can use AWS SDKs to create a more customized authentication experience. This involves:
- Creating a user pool in the Amazon Cognito console
- Setting up an app client for your application
- Implementing the authentication workflow in your application
- API Gateway Integration: If your startup involves APIs, you can use Cognito user pools as authorizers for your API Gateway endpoints. This requires:
- Creating a user pool
- Creating an API Gateway authorizer with the chosen user pool
- Enabling the authorizer on selected API methods
The implementation typically involves:
- Setting up your user pool in the Cognito console
- Creating an app client within that user pool
- Integrating authentication into your application using either the managed login pages or custom UI with SDK support
- Using the tokens (identity or access tokens) returned by Cognito to authorize access to your application resources
Without knowing your specific use case, these general approaches should help you get started with Cognito while staying within the free tier limits.
Sources
Community | Amazon Cognito - Function over form
Integrating Amazon Cognito authentication and authorization with web and mobile apps - Amazon Cognito
Module 2 - Build the authentication workflow
Control access to REST APIs using Amazon Cognito user pools as an authorizer - Amazon API Gateway
Choose an Amazon Cognito authentication flow for enterprise applications - AWS Prescriptive Guidance
