espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 153 forks source link

Porting of AWS SDK to use S3 bucket features (IDFGH-6734) (CA-189) #93

Open MaazSk opened 2 years ago

MaazSk commented 2 years ago

Is your feature request related to a problem? Please describe.

I am unable to find an example or clear method on how to upload data to the AWS S3 bucket as our project is on esp32 and now we require to upload data to the AWS S3 bucket

Describe the solution you'd like

Porting the code provided by AWS so that we can use it in EP-IDF. The steps are provided here.

Thank you in advance

MaazSk commented 2 years ago

Hi @mahavirj,

I just wanted to know if there are any updates on it?

dhavalgujar commented 2 years ago

Hi, @MaazSk

We have made the port for the coreHTTP library and an example to go with it available here. The example demo that we have made available has been taken from, and is a lightly changed version of the one available in the aws-iot-device-sdk-embedded-C repo.

The same external repo includes examples for S3 upload and download.

Since the library used for the demos is the same and has been ported, and there are no other dependencies for S3 upload specifically, it should be possible to make similar changes to the example, and get the S3 upload demo to work on esp32. You can view a diff of the changes made to the original example here.

Please feel free to reply here in case you run into any issues with getting the S3 upload demo to work.

HTH.

MaazSk commented 2 years ago

Hi @dhavalgujar,

Thank you for your valuable response. I will check these examples and update you soon as I am preoccupied right now and if any help is needed I will let you know for sure.

Thank you for sharing the details

MaazSk commented 2 years ago

Hi @dhavalgujar,

I was going through the examples, but those examples seem to be for pre-signed URLs of AWS. Is there an example where we can upload files without pre-signed URLs?

MaazSk commented 2 years ago

Hi @mahavirj, is there any update on this?

Thanks and Regards, Maaz Shaikh

dizcza commented 1 year ago

Hi, @MaazSk

We have made the port for the coreHTTP library and an example to go with it available here. The example demo that we have made available has been taken from, and is a lightly changed version of the one available in the aws-iot-device-sdk-embedded-C repo.

The same external repo includes examples for S3 upload and download.

Since the library used for the demos is the same and has been ported, and there are no other dependencies for S3 upload specifically, it should be possible to make similar changes to the example, and get the S3 upload demo to work on esp32. You can view a diff of the changes made to the original example here.

Please feel free to reply here in case you run into any issues with getting the S3 upload demo to work.

HTH.

Any reason why the code in the release/beta has not been merged into master? It's a bad practice to stick to an unstable version and I see the branches have already diverged significantly.