I am new to AWS IoT core and I have just created one simple thing and created certificate and also attached a policy to certificate and my thing.
when I go to my certificate page I can see it has my policy attached to it and also my thing attached to it. (the policy has all resource * and has all IoT:* actions)
I think I am doing all correctly but when on AWS IoT portal I go to test, I always get "Mqtt connection lost. Reconnect." on nitrification panel.

I have also come up with some python codes and used the private key and certificate which I created from above but again my client program can not connect to AWS IoT.
I am not sure why the test doesn't work at all and I always get "Mqtt connection lost"?


@Luckylukee -
Thanks for the screenshot!
My experience says that your MQTT connection error has nothing to do with the configuration of your IoT devices/certificates/policies.
Reason I say it is.. without any devices created in AWS IoT, you should still be able to click on 'Test' button and subscribe to topics without issues.
The error you reported is something very "core" between AWS IoT Test Tool and AWS IoT Server Endpoint (specific to your AWS account).
Can you try these?
Good Luck!