This sample application was derived from the the sample application "subscribe_publish_sample" made available with the AWS IoT C SDK.
At the time of writing the AWS IoT C SDK could be downloaded from: https://s3.amazonaws.com/aws-iot-device-sdk-embedded-c/linux_mqtt_openssl-latest.tar.