This sample uses an OpenFaaS MQTT-connector along with a Python function to receive JSON messages from MQTT and to store them in an S3 bucket.
The use-case could be ingestion of IoT sensor data from edge devices. I put this example together to show people a starting point, that could be modified and extended for your own use.