Terraform for FreeRTOS IoT Cloud on AWS IoT Core
Provision AWS IoT Core for FreeRTOS devices with Terraform: thing types, policies, certificates, jobs for OTA, and Greengrass core devices.
DevOps
Provision Azure IoT Hub for ThreadX / Azure RTOS (now Eclipse ThreadX) devices with Terraform: IoT Hub, DPS, Device Update for IoT Hub.
ThreadX (the former Microsoft Azure RTOS, now Eclipse ThreadX) ships in billions of MCUs. Devices typically connect to Azure IoT Hub with the Device Provisioning Service (DPS) for zero-touch onboarding and Device Update for IoT Hub for OTA. Terraform's azurerm provider covers all of it.
resource "azurerm_iothub" "this" {
name = "threadx-hub"
resource_group_name = azurerm_resource_group.iot.name
location = azurerm_resource_group.iot.location
sku {
name = "S1"
capacity = 1
}
}
resource "azurerm_iothub_dps" "this" {
name = "threadx-dps"
resource_group_name = azurerm_resource_group.iot.name
location = azurerm_resource_group.iot.location
sku {
name = "S1"
capacity = 1
}
linked_hub {
connection_string = azurerm_iothub_shared_access_policy.dps_link.primary_connection_string
location = azurerm_resource_group.iot.location
}
}resource "azurerm_iothub_device_update_account" "this" {
name = "threadx-du"
resource_group_name = azurerm_resource_group.iot.name
location = azurerm_resource_group.iot.location
sku = "Standard"
identity { type = "SystemAssigned" }
}
resource "azurerm_iothub_device_update_instance" "this" {
name = "production"
device_update_account_id = azurerm_iothub_device_update_account.this.id
iothub_id = azurerm_iothub.this.id
diagnostic_enabled = true
diagnostic_storage_account {
connection_string = azurerm_storage_account.diag.primary_connection_string
id = azurerm_storage_account.diag.id
}
}Provision AWS IoT Core for FreeRTOS devices with Terraform: thing types, policies, certificates, jobs for OTA, and Greengrass core devices.
Provision cloud backends for Zephyr RTOS devices with Terraform: MCUboot signing, mcumgr OTA delivery, AWS IoT or Memfault integration.
Install Terraform on Linux, macOS, Windows, or BSD. Quick apt, dnf, and brew commands plus step-by-step guides for Ubuntu, Debian, RHEL, Fedora, Arch, and 50+ platforms.
Compare Terraform with OpenTofu, Pulumi, Ansible, AWS CDK and CloudFormation, plus core concept guides like for_each vs count and plan vs apply.