Based on Core2-for-AWS-IoT-EduKit and AWS IoT EduKit Workshop.
Install v4.2
of esp-idf.
$ > brew install cmake ninja dfu-util
$ > mkdir $HOME/esp
$ > cd $HOME/esp
$ > git clone -b release/v4.2 --recursive https://github.com/espressif/esp-idf.git
$ > cd esp-idf
$ > $HOME/esp/esp-idf/install.sh
# Configure esp-idf
$ > . $HOME/esp/esp-idf/export.sh
# Configure WiFi settings in "AWS Configuration" ( use "s" to save and "q" to quit )
$ > idf.py menuconfig
# Compile software
$ > idf.py build
# Load software to Core2 and start monitor
$ > idf.py flash monitor
Use control + ]
to quit monitor.