Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload to S3 via shell script without aws-cli, possible?

As the title says, is it possible to upload to S3 via shell script without aws-cli-tools?

If so, how?

What I'm trying to do is read from a txt file on S3 (which is public, so no authentication is required).

But I want to be able to overwrite whatever is in the file (which is just a number).

Thanks in advance,

Fadi

like image 659
Fadi Avatar asked Oct 13 '15 20:10

Fadi


1 Answers

Yes you can! You basically emulate the api calls the SDK would do for you through standard linux cmd utils.

Look at:

https://aws.amazon.com/code/Amazon-S3/943

and/or

http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash

like image 191
Mircea Avatar answered Sep 20 '22 17:09

Mircea