Sitemap

AWS cli

1 min readJan 9, 2015

Amazon command line interface…

I have a bucket on AWS that contains a bunch of user submitted images. There’s one per user. I wanted to quickly put together a mosaic/grid of all the images.

Get Zak Jacobson’s stories in your inbox

Join Medium for free to get updates from this writer.

Step 1, install the cli.

sudo easy_install pip
sudo pip install awscli

Set up bash command completion:

complete -C ‘/usr/local/bin/aws_completer’ aws

Configure:

aws configure

Get all my images:

aws s3 cp s3://my-bucket/ /tmp/avatars/ —recursive —include “*.png”

Create a stupid simple web page:

for d in */ ; do echo “<img src=’$d/avatar.png’ height=80 width=80 alt=’${d%/}’ title=’${d%/}’ />” >> index.html; done

Done and done.