Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
upload file to S3 via curl on public bucket
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
You can’t perform that action at this time.