Is there a straightforward tutorial explaining writing files to generic S3 bucket using C? All I can find is C++ and C#, neither of which I'm familiar with, and I need to get this project written too quickly for me to learn C++ or C#.
264k 27 27 gold badges 431 431 silver badges 513 513 bronze badges asked Jul 7, 2022 at 0:16 165 9 9 bronze badgesno nice way of doing it in C. you can try and look through this for doing it in C but you'd have to teach yourself how everything in their package works together. github.com/awslabs/aws-c-common. stackoverflow.com/questions/51731391/…
Commented Jul 7, 2022 at 0:19if speed's the goal, do it in python. medium.com/bilesanmiahmad/…. if it has to be done within the context of running C code, you can make the python script work with sys args and pass them in via the C code calling it. linuxjournal.com/article/8497
Commented Jul 7, 2022 at 0:23Thanks for the aws-c-common suggestion. It seems odd to me that they'd write all the underlying stuff in C, then have various well-documented SDKs for other languages but not bother to write up how to use the C functions directly. I don't know Python, either, sadly, so that's a non-starter.
Commented Jul 7, 2022 at 1:02if you know c, doing just this in python should be straight forward. Install any minor version of python3 and copy paste from the tutorial linked. you'll only need to make 4 changes. the location of the file being uploaded, the location in the bucket it should be stored, and the keys used to authorize access to the bucket