Skip to content

Instantly share code, notes, and snippets.

@rch850
Created May 26, 2014 09:46
Show Gist options
  • Save rch850/807bc3776bf1673286cf to your computer and use it in GitHub Desktop.
Save rch850/807bc3776bf1673286cf to your computer and use it in GitHub Desktop.
I want this bucket
#!/bin/sh
# sh i-want-this-bucket.sh bucket-name region-name
while :; do
date
aws s3api create-bucket --bucket $1 --create-bucket-configuration LocationConstraint=$2 && break
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment