Skip to content

Instantly share code, notes, and snippets.

@chips5k
Created April 6, 2020 12:26
Show Gist options
  • Save chips5k/a3dcd77f791af889a4c06e14f5d4ffd0 to your computer and use it in GitHub Desktop.
Save chips5k/a3dcd77f791af889a4c06e14f5d4ffd0 to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
run="1"
while [ "$run" == "1" ]
do
echo "trying"
res=$(aws s3 mb s3://bucket-name --region ap-southeast-2 >/dev/null 2>&1 && echo "success")
[ "$res" == "success" ] && exit 0
echo "waiting..."
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment