eyalgo
4/14/2015 - 7:17 AM

A small shell script that shows how to upload file to S3. Usage can be for ELB

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>/