There is a new @awscloud #IoT library and its API is a disappointingly horrible thin wrapper around a C library (with global state etc.): https://github.com/aws/aws-iot-device-sdk-js-v2/blob/master/samples/node/fleet_provisioning/index.ts#L320-L371
... AND it does not work on Lambda ATM: https://github.com/aws/aws-iot-device-sdk-js-v2/issues/58
WHAT are they smoking?