Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Created April 14, 2015 07:17
Show Gist options
  • Save eyalgo/01c18a25c285e4e6d798 to your computer and use it in GitHub Desktop.
Save eyalgo/01c18a25c285e4e6d798 to your computer and use it in GitHub Desktop.
A small shell script that shows how to upload file to S3. Usage can be for ELB
#!/bin/sh
if [ -z "$1" ]; then echo "Please add build number"; exit; fi
rm confirmedBuild
touch confirmedBuild
echo $1 > confirmedBuild
# /usr/bin/s3cmd is where the s3 command tool locates
/usr/bin/s3cmd put confirmedBuild s3://<bucket name>/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment