Created
October 22, 2018 15:24
-
-
Save anilbhanushali/160f7776fedfa615d5c9056b6988c912 to your computer and use it in GitHub Desktop.
upload file to S3 via curl on public bucket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bucket=my-test-bucket | |
dateValue=`date -R` | |
file=file.tar.bz2 | |
curl -L -vv -X PUT -T "${file}" \ | |
-H "Host: ${bucket}.s3.amazonaws.com" \ | |
-H "Date: ${dateValue}" \ | |
https://${bucket}.s3.ap-south-1.amazonaws.com/${file} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment