Live data from Hacker News

Uploading to S3 in 18 lines of Shell

gist.github.com

1–10 of 23 posts

Re: Uploading to S3 in 18 lines of Shell

#6
post #4

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

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.

Re: Uploading to S3 in 18 lines of Shell

#7
post #4

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

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.

Exactly my thinking. Nice to have one thing less to install on a new Jenkins node, for example.

Re: Uploading to S3 in 18 lines of Shell

#8
post #4

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

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

#9
post #7

Earlier 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.

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

#10
post #7

Earlier 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.

Exactly my thinking. Nice to have one thing less to install on a new Jenkins node, for example.

I'll fix it when my game requires update files of >5GB :)
Post reply on HN