Files
query-orchestration/cmd/auth_related/mfa/creation.script.examples/create.all.md
T
Jay Brown 6dccf494f8 Merged in feature/permit-policy-cleanup (pull request #210)
cleanup permit policies and correct documentation

* docs

* policy cleanup

* refactor

* Merge remote-tracking branch 'origin/feature/permit-policy-cleanup' into feature/permit-policy-cleanup

* docs and edits
2026-02-19 20:22:59 +00:00

1.1 KiB

User pool creation

Step-by-Step Process for creation of new user pool and dependencies

  1. Create User Pool: Creates a new Cognito User Pool with email as the username attribute and password policies.

  2. Enable MFA: Configures the user pool to require MFA using software token (TOTP) authentication.

  3. Create Domain: Sets up a custom Cognito domain for the hosted UI at https://{DOMAIN_PREFIX}.auth.{AWS_REGION}.amazoncognito.com.

  4. Apply UI Customization: Adds minimal branding with custom CSS for the login pages.

  5. Create App Client: Creates an application client with:

    • OAuth code flow
    • Refresh token validity
    • Callback and logout URLs
    • Client secret
  6. Create Test User: Creates a test user with the specified email and phone number.

Output

The script logs all operations to creation.log.txt and outputs a summary with:

  • User Pool ID
  • Domain URL
  • App Client ID
  • App Client Secret
  • Test user information

Usage

Edit the DOMAIN_PREFIX, LOG_FILE and NEW_USER_POOL_NAME with unique values for your test run.