Guest User

Untitled

a guest
Feb 16th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. for x in $(aws iam list-users --output text --query 'Users[*].UserName');
  2. do
  3. echo "$x?"
  4. read choice
  5. case "$choice" in
  6. y|Y ) echo $(aws iam update-login-profile --user-name $x --password-reset-required);;
  7. n|N ) echo "no";;
  8. * ) echo "invalid";;
  9. esac
  10. ;
  11.  
  12. done
Add Comment
Please, Sign In to add comment