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
| Skill | What it does |
|---|---|
aws-iot-core-migration-planner | AWS 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-executor | Verifies 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. |
| Script | Purpose |
|---|---|
aws_policy_to_connectmq.py | IoT 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.py | Classic and named Device Shadows → retained things/<thing>/shadow/{reported,desired} messages. |
relay.py | AWS IoT Core (X.509 client certificate) ↔ ConnectMQ relay with loop protection. |
client_id_map.py, verify_connectmq.py, copy_retained.py, compare_streams.py | See 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-migrationHow the migration runs
- Plan: inventory AWS IoT, measure with CloudWatch, check plan limits, redesign
$aws/topics, convert policies, give every topic rule a replacement owner. - Firmware step 1: while devices are still on AWS, add the ConnectMQ root CA (ISRG Root X1) and storage for the new credentials.
- Relay: a dedicated relay thing forwards device traffic to ConnectMQ and commands back to AWS.
- Back ends first: rule replacements and apps consume from ConnectMQ in shadow mode.
- Firmware step 2 in waves: thing groups switch endpoint, credentials, client ID and topics; AWS certificates stay active as the rollback lever.
- Decommission: disable rules, deactivate then delete certificates after the rollback window.
What changes
| AWS IoT Core | ConnectMQ |
|---|---|
| X.509 client certificates | Username and password over TLS; client ID <ISSUED_ID>_<thing> |
| IoT policies | ACL policies (Basic & Scale) |
| Device Shadow | Retained topics (things/<thing>/shadow/reported, .../desired) |
| Rules engine (DynamoDB, Timestream, Lambda…) | Small subscriber services; shared subscriptions to scale them |
$aws/... reserved topics | Your own topic tree (topic design) |
| AWS IoT Jobs | Command 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?"