This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USER_POOL_ID=POOL_ID | |
RUN=1 | |
until [ $RUN -eq 0 ] ; do | |
echo "Listing users" | |
USERS=`aws cognito-idp list-users --user-pool-id ${USER_POOL_ID} | grep Username | awk -F: '{print $2}' | sed -e 's/\"//g' | sed -e 's/,//g'` | |
if [ ! "x$USERS" = "x" ] ; then | |
for user in $USERS; do |