This project is built on top of a nice article called ESP32 & AWS IoT Core by Muhammad Afzal It converts the device code in the above article into a platfotmio project.
Follow the article above to setup the AWS IoT core environment in your account.
https://platformio.org/ for the build system.