Skip to content

Migrate from AWS IoT Core ​

The AWS IoT Core migration skills inventory things, IoT policies, topic rules and Device Shadows with the AWS CLI, convert policies to ConnectMQ access control rules, redesign $aws/ topics, plan the firmware rollout, then relay traffic, copy shadow state and move devices in waves.

What the skills do ​

SkillWhat it does
aws-iot-core-migration-plannerAWS CLI inventory (things, policies, rules, shadows, Jobs), CloudWatch sizing, fit check against ConnectMQ plans, policy-to-ACL conversion, $aws/ topic redesign, replacements for the rules engine and shadows, two-step firmware plan; writes migration/plan.md.
aws-iot-core-migration-executorVerifies ConnectMQ, creates a least-privilege relay thing, runs the relay, copies shadows to retained topics, validates both sides, moves thing groups in waves (OTA or AWS IoT Jobs), rolls back, deactivates certificates and rules; keeps migration/log.md.
ScriptPurpose
aws_policy_to_connectmq.pyIoT policy JSON → ConnectMQ ACL rules: Allow/Deny, iot:Publish/Subscribe/Receive/Connect, ${iot:ClientId} and thing-name variables, $aws/ topic remapping.
aws_shadows_to_retained.pyClassic and named Device Shadows → retained things/<thing>/shadow/{reported,desired} messages.
relay.pyAWS IoT Core (X.509 client certificate) ↔ ConnectMQ relay with loop protection.
client_id_map.py, verify_connectmq.py, copy_retained.py, compare_streams.pySee the overview.

Nothing calls AWS unless you run the inventory commands.

Install ​

text
/plugin marketplace add connectmq/aws-iot-core-migration-skills
/plugin install aws-iot-core-migration-skills@connectmq-aws-iot-core-migration

How the migration runs ​

  1. Plan: inventory AWS IoT, measure with CloudWatch, check plan limits, redesign $aws/ topics, convert policies, give every topic rule a replacement owner.
  2. Firmware step 1: while devices are still on AWS, add the ConnectMQ root CA (ISRG Root X1) and storage for the new credentials.
  3. Relay: a dedicated relay thing forwards device traffic to ConnectMQ and commands back to AWS.
  4. Back ends first: rule replacements and apps consume from ConnectMQ in shadow mode.
  5. Firmware step 2 in waves: thing groups switch endpoint, credentials, client ID and topics; AWS certificates stay active as the rollback lever.
  6. Decommission: disable rules, deactivate then delete certificates after the rollback window.

What changes ​

AWS IoT CoreConnectMQ
X.509 client certificatesUsername and password over TLS; client ID <ISSUED_ID>_<thing>
IoT policiesACL policies (Basic & Scale)
Device ShadowRetained topics (things/<thing>/shadow/reported, .../desired)
Rules engine (DynamoDB, Timestream, Lambda…)Small subscriber services; shared subscriptions to scale them
$aws/... reserved topicsYour own topic tree (topic design)
AWS IoT JobsCommand topics and your OTA tooling

Example prompts ​

  • "We have 600 ESP32 devices on AWS IoT Core with X.509 certificates. Plan a move to ConnectMQ."
  • "Convert these IoT policies to ConnectMQ access control rules."
  • "What replaces our topic rules that write to DynamoDB and Timestream?"
  • "Copy all Device Shadows into retained topics on ConnectMQ."
  • "Devices fail the TLS handshake after switching to ConnectMQ. What is wrong?"

Fully managed MQTT broker for connected devices.