Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created March 23, 2025 03:18
Show Gist options
  • Save nivleshc/618f6a5d828f0765c9ce8e0a5f821e9d to your computer and use it in GitHub Desktop.
Save nivleshc/618f6a5d828f0765c9ce8e0a5f821e9d to your computer and use it in GitHub Desktop.
This gist contains code from the file cognito.tf which is part of the blog-photo-location-map repository.
resource "aws_cognito_user_pool" "user_pool" {
name = local.cognito_user_pool_name
# Customize password policy, MFA, etc., as needed
password_policy {
minimum_length = local.cognito_password_policy.minimum_length
require_uppercase = local.cognito_password_policy.require_uppercase
require_lowercase = local.cognito_password_policy.require_lowercase
require_numbers = local.cognito_password_policy.require_numbers
require_symbols = local.cognito_password_policy.require_symbols
}
auto_verified_attributes = ["email"]
# (Optional) Enable advanced security features
mfa_configuration = local.cognito_mfa_configuration
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment