Sensecap D1S and AWS IoT Core

Hello,
I am using the Sensecap D1s Device from seeed studio for a project and I am facing difficulties in connecting it to a MQTT broker of the AWS IoT core. The device has prebuild project examples and I am using the example available in the github folder - “indicator_ha”. I am pasting the link to the github here - GitHub - Seeed-Solution/SenseCAP_Indicator_ESP32: SenseCAP Indicator SDK.. I tried changing the endpoint and client ids, and also tried adding the certificates for authentication everytime it throws a error -

E (22157) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x6C00
I (22158) esp-tls-mbedtls: Certificate verified.
E (22159) esp-tls: Failed to open new connection
E (22170) city: Connection failed…
I (23171) city: Get time zone…
E (23182) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x6C00
I (23183) esp-tls-mbedtls: Certificate verified.
E (23184) esp-tls: Failed to open new connection
E (23195) city: Connection failed…

Can anyone help me connect the device to the AWS IoT core via MQTT.
Thankyou