AWS IoT Device SDK C: Fleet Provisioning
AWS IoT Fleet Provisioning
Return to main page ↑
Demo

The demos demonstrate the usage of the Provisioning library for 2 different Provisioning workflows:

  • Provisioning when both keys and certificate are requested from AWS IoT.
  • Provisioning when device provides a Certificate-Signing Request to AWS IoT for certificate creation.

These demos represent simple examples of using the Provisioning library for provisioning devices with the AWS IoT Fleet Provisioning feature.

Both the demos establish an MQTT connection and make two API calls to the Fleet Provisioning feature of the AWS IoT Core service for illustrating their specific Provisioning workflow.

Provisioning Demo with AWS IoT created Keys and certificate

provisioning_demo_with_keys_and_cert.png
Provisioning Demo Workflow when keys are generated by AWS IoT

Provisioning Demo with Certificate-Signing Request

provisioning_demo_with_csr.png
Provisioning Demo Workflow with Certificate-Signing Request

Demo Setup

How to set up a fleet provisioning template for the Provisioning demo.

The demo assumes a fleet provisioning template which takes parameters (including one for "SerialNumber") from the device has been created in the account that will be used for connecting to AWS IoT Core. To create a template, you can use the AWS IoT Console or AWS CLI. (For more information on fleet provisioning templates, refer here. )

  1. Create an IAM user for AWS CLI. See steps 1 Additional Travis CI setup for Jobs and Provisioning system tests for more information.
  2. Create an IAM role and attach a policy to the role. The role is required to create the provisioning template. (The provisioning template assumes the role for its runtime behavior.) See steps 2 and 3 in Setting up Provisioning system tests for more information
  3. Create a provisioning template for the demo. See step 4 in Setting up Provisioning system tests for more information.
  4. Build and run the demo as described here.

See Demo Configuration for configuration settings that change the behavior of the demo.