Hello,
Mosquitto in the example is used for local testing purposes only. It is not required for publishing data to AWS.
Regarding, your issue, could you please share your configuration by sending the screenshots in a private message?
Best regards,
Žygimantas