The reason why I made this repository, is that when I wanted to connect my cheap D1 mini (ESP8266) to the AWS IoT Core to take advantage of the MQTT protocol for Pub/Sub, I found the majority of tutorials not very helpful. If your basic idea is to publish messages through the MQTT protocol to an AWS backend (into DynamoDB or S3) then this is the place for you.
Hopefully, this repository will help your D1 mini/ESP8266 home projects.
The above version was the one I used for testing this code but any D1 mini should work fine.