Skip to content

Instantly share code, notes, and snippets.

@jaymes-bearden
jaymes-bearden / cognito-signup.sh
Last active January 12, 2024 03:13
Bash script - AWS CLI Cognito User Sign Up using a client app with client secret
#!/bin/bash
# Found in user pool "General Settings / App clients" -- you can always add another if needed
APP_CLIENT_ID="abcdefg1234567"
APP_CLIENT_SECRET="a1b2c3d4e5f6g7h8i9j10"
# User details for Cognito
USERNAME=$(uuidgen) # Cognito user name -- if you don't have this aliased, use an email for the username
EMAIL="test.email@domain.com" # Extra attributes (specified when creating the user pool)
PASSWORD="MyTestPassword!"