SHARE
TWEET

Untitled

a guest Mar 20th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. # aws cognito-idp admin-create-user --user-pool-id us-east-1_XXXXXXXXX --username "user@user.com"
  4.  
  5. echo "What User Pool Id? [us-east-1_XXXXXXXXX]"
  6. read userPoolId
  7.  
  8. echo "which users to create? [user1@email.com user2@email.com user3@email.com]"
  9. read -a users
  10.  
  11. for user in ${users[@]}
  12. do
  13.    aws cognito-idp admin-create-user --user-pool-id $userPoolId --username $user
  14. done
  15.  
  16. echo 'Users created!'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top