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
function whohaskey { | |
APIKEY="$1" | |
CACHE_DIR=~/.aws/keycache | |
mkdir -p $CACHE_DIR | |
if [ -f $CACHE_DIR/$APIKEY ]; then | |
cat $CACHE_DIR/$APIKEY | |
return | |
fi | |
for USER in $(aws iam list-users | jq -r .Users[].UserName); do | |
JSON=$(aws iam list-access-keys --user-name "$USER") |
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
% vagrant up --no-provision $VAGRANTBOX | |
% vagrant ssh $VAGRANTBOX | |
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash | |
vagrant$ rm /tmp/chef*{rpm,deb} | |
vagrant$ exit | |
% vagrant package $VAGRANTBOX | |
% rm -rf ~/.vagrant.d/boxes/$VAGRANTBOX | |
% vagrant box add $VAGRANTBOX package.box |