aws s3 cp src dest... OK curl is installed by default but if you have to install this script anyway, it's only a `pip install` away...
Uploading to S3 in 18 lines of Shell
11–20 of 23 posts
Re: Uploading to S3 in 18 lines of Shell
#12Searching GitHub for S3SECRET and S3KEY might get interesting if this script gets used a lot.
Re: Uploading to S3 in 18 lines of Shell
#13Re: Uploading to S3 in 18 lines of Shell
#14These use the V4 signature, which I grabbed from an article somewhere on the subject that I can't seem to find anymore :( The cached-bundle script is inspired and based off the one from devise: https://github.com/plataformatec/devise/blob/master/script/c...
Re: Uploading to S3 in 18 lines of Shell
#15Re: Uploading to S3 in 18 lines of Shell
#16Documentation:
https://bashmenot.mietek.io/reference
Source:
Re: Uploading to S3 in 18 lines of Shell
#17Earlier quoted context omitted.
Some platforms and environments don't have pip handy, or you might not have root access, or you can't install new software for any number of reasons, or the required libraries are not installed. curl and /bin/sh and openssl are more universal, so it's good to be able to do what you need to do without resorting to installing software.
You don't need root to install Python packages with pip. You can install them just for your user. See https://pip.readthedocs.org/en/latest/user_guide.html#user-i...
Re: Uploading to S3 in 18 lines of Shell
#18Earlier quoted context omitted.
Exactly my thinking. Nice to have one thing less to install on a new Jenkins node, for example.
Except this won't work with files bigger than 5gb. It might be worth the time to do it right.
Re: Uploading to S3 in 18 lines of Shell
#19Earlier quoted context omitted.
Exactly my thinking. Nice to have one thing less to install on a new Jenkins node, for example.
Except this won't work with files bigger than 5gb. It might be worth the time to do it right.
The right way is the most simple way for your use case. For files under 5GB, this is one of the right ways.