sebassotoa/AWS Cognito Auth

Provision AWS Cognito User Pool for authentication using Terraform with customizable branding assets

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
actionDesired outcome: apply, plan or destroynoapply
nameCognito User Pool name - will be used as the Name tagyes
callback_urlsComma-separated list of callback URLs for OAuthnohttps://example.com/callback
logout_urlsComma-separated list of logout URLs for OAuthnohttps://example.com
allowed_domainsComma-separated list of allowed email domains for pre-sign-up validation (leave blank to disable)no""
enable_managed_login_brandingEnable managed login branding with customizable assets (use background_asset_path, logo_asset_path, favicon_asset_path)nofalse
login_positionLogin form horizontal position: START, CENTER, or END (only works when enable_managed_login_branding is true)noCENTER
form_vertical_positionLogin form vertical position: TOP, CENTER, or BOTTOM (only works when enable_managed_login_branding is true)noCENTER
primary_colorPrimary branding color (6-digit hex without #, e.g. 0972d3). Applied to buttons and links.no0972d3
primary_color_hoverHover state color for primary elements (6-digit hex without #)no033160
form_border_radiusBorder radius for form container and inputs (pixels)no8
color_scheme_modeDisplay mode: LIGHT, DARK, or ADAPTIVE (follows browser preference)noLIGHT
idpList of identity providers to enable (e.g., "google", "cognito", or "google\ncognito")nocognito
google_client_idGoogle OAuth 2.0 client ID (required when idp includes "google")no""
google_client_secretGoogle OAuth 2.0 client secret (required when idp includes "google")no""
background_asset_pathPath to background image asset relative to workspace root (supported: png, jpg, jpeg, svg)no""
logo_asset_pathPath to logo image asset relative to workspace root (supported: png, jpg, jpeg, svg)no""
favicon_asset_pathPath to favicon asset relative to workspace root (supported: ico, png)no""
self_registrationAllow users to sign themselves up (true) or require admin to create users (false)nofalse
admin_emailEmail address for the admin user (if provided, admin user will be created)no""
case_sensitiveWhether usernames are case sensitive (true) or case insensitive (false). Default is true (case sensitive)notrue
permissionsList of permissions following Github standard of service: read or write. In YML format (e.g., "s3: write\ndynamodb: read")no""
namedescription
user_pool_idID of the Cognito User Pool
user_pool_arnARN of the Cognito User Pool
client_idID of the Cognito User Pool Client
client_secretSecret of the Cognito User Pool Client
user_pool_domainDomain of the Cognito User Pool
login_urlComplete login URL for the Cognito Hosted UI
cognito_domainCognito provided domain URL
managed_login_branding_enabledWhether managed login branding is enabled
managed_login_versionManaged login version used by the domain
managed_login_branding_idID of the managed login branding resource
hosted_ui_urlComplete hosted UI URL for sign-in
supported_identity_providersList of supported identity providers
self_registration_enabledWhether users can sign themselves up
admin_user_createdWhether admin user was created (true when admin_email is provided)
admin_usernameUsername of the admin user (if created)
cognito_group_nameName of the Cognito user pool group (if permissions are provided)
cognito_group_role_arnARN of the IAM role attached to the Cognito group (if permissions are provided)