bin/MACC02VK5ECHTD7/aws-reset-pass
#!/bin/sh -e die() { # Print a message and exit with '1' (error). echo "$1" exit 1 } [ "$1" ] || die "You must specify a new pass" newpass="$1" echo "Resetting password" for a in browse cgraph; do for e in test stage prod; do echo "-> ${a}_${e}..." aws --profile "${a}_${e}" iam update-login-profile --user-name jesse.olson --password "$newpass" echo "done" done done