This guide takes you through the steps to use AWS IoT with MQTT

Create and Download the Certificate

Open AWS IoT, select “Certificates” in the left menu “Security” and click “Create Certificate”.

Select 1-Click Create Certificate (recommended).

Once the certificate is created, you will be able to download 3 certificates, download all of them.

Note that no public key will be used.

Select “Download” to download the certificate for the Amazon IoT root CA.

Click on the link RSA 2048 bit key : Amazon Root CA 1 to view the certificate and copy and paste the text into your editor.


Configure the Policy

Next, configure a policy: open AWS IoT, select “Policies” under Safety, and click “Create Policy”.

Enter a name for the policy, enter “iot:“ for the action, “” for the resource ARN, check “Allow” for the effect and click “Create”.

The policy has been created.


Associating a Policy with a Certificate

Select “Certificates” under Safety and click on the certificate you created.

Select the action and click on “Attach Policy”. 

Check the policy you just created and click “Attach”.


Check the Entry Point

Check the MQTT publish and subscribe entry points.

Click on the “Settings” menu on the left. Endpoints will be displayed and use this one.

After confirming the settings up to the endpoint, the configuration in AWS IoT is finished.

MQTTPublisher configuration in Gravio Studio

In Gravio Studio, set the MQTTPublisher properties as follows

  • Topic can be any value.
  • Client ID is a unique value.

URL is “ssl://” followed by the entry point.
The port is “8883” and the username and password are left blank.

Select the downloaded files for the certificate, private key, and root certificate. Leave the private key passphrase blank.

You are now set up to send data from MQTTPublisher to AWS IoT’s MQTT.

Need more help with this?
Join our slack community for help

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.