Menu
AWS IoT
Developer Guide

Republish Action

The republish action allows you to republish the message that triggered the role to another MQTT topic. When creating a rule with a republish action, you must specify the following information:

topic

The MQTT topic to which to republish the message.

roleArn

The IAM role that allows publishing to the MQTT topic.

Note

Make sure the role associated with the rule has a policy granting the iot:Publish permission.

{ "rule": { "sql": "SELECT * FROM 'some/topic'", "ruleDisabled": false, "actions": [{ "republish": { "topic": "another/topic", "roleArn": "arn:aws:iam::123456789012:role/aws_iot_republish" } }] } }