Publish directly to an AWS IoT Rules Engine rule using Basic Ingest topics ($aws/rules/rule-name/...) to avoid standard message broker publish costs

domain: iot · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Grant the device or application an IoT policy with publish permission on $aws/rules/* (or scope to a specific rule with $aws/rules/rule_name/*)
  2. Publish to a topic whose first three levels are $aws/rules/rule_name, followed by any custom topic segments your rule's SQL statement expects (e.g. $aws/rules/BuildingManager/Buildings/Building5/Floor2/Room201/Lights)
  3. If the rule is invoked only via Basic Ingest, the FROM clause in the rule's SQL is optional; keep FROM if the same rule is also invoked through normal message broker topics
  4. Publish with QoS 1 if you need delivery acknowledgment; you receive a PUBACK once the message reaches the rules engine, which does not guarantee the rule's actions succeeded
  5. Configure an error action on the rule to catch and handle failures, since Basic Ingest bypasses the pub/sub broker and cannot fan out to multiple subscribers

Known gotchas

Related routes

Route AWS IoT Core MQTT messages to Lambda, S3, and DynamoDB using the Rules Engine SQL syntax
docs.aws.amazon.com · 6 steps · unrated
Forward MQTT messages to a Kafka topic using the EMQX rule engine and Kafka Producer sink
docs.emqx.com · 6 steps · unrated
Reduce MQTT 5 publish overhead for a high-frequency sensor topic by using topic aliases instead of repeating the full topic string
docs.oasis-open.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans