Upload to aws s3

#1
  1. My goal is: upload a file to aws s3 directly from mongoose .cpp code for ESP32
  2. My actions are: none yet, not sure where to start
  3. The result I see is: none yet
  4. My expectation & question is:

How do I upload a file to AWS S3 from C++ code running Mongoose OS on an ESP32? Is there an AWS IOT-device SDK (or AWS CLI) that can run on Mongoose OS?

#2

mOS supports the connection to AWS IoT Core via MQTT. Whatever you can send using MQTT you can catch with a rule and redirect to other AWS services.
There are several examples around on the use of mOS to interact with AWS, I can point you to the tutorial at the documentation site and if you search this forum you’ll also find those of my own (though they are in Spanish).
The level of efficiency will depend on your file length and upload frequency. We can also discuss the actual need for uploading a file vs doing whatever you have to do in some other (more constrained-embedded-systems-friendly) way.
If you do need to interface to S3 and that has an HTTPS API (I think so), you could try using Mongoose (the web server/client) for that, which to some percentage is fully available inside Mongoose-OS, though I have no idea on how to use it and so I’m not able to help there.

#3

What do you think about trying to build in the aws embedded sdk: https://github.com/aws/aws-iot-device-sdk-embedded-C/tree/3d9a8d47dbdf6729c447ddcb8a808bcc8996435b/demos/http/http_demo_s3_upload