Link: How to connect ESP32 to AWS IoT Core using AWS MQTT
This repository is a template repository to use if you want to connect ESP32 to AWS IoT Core using AWS MQTT. This full working code connects to AWS IoT using AWS certificate defined in the provision step. This AWS ESP32 template project uses a DHT11 to send temperature and humidity to AWS IoT through MQTT. You can replace the DHT11 sensor and use a different sensor or you can send other kind of data to AWS.