Menu
AWS IoT
Developer Guide

Firehose Action

A firehose action sends data from an MQTT message that triggered the rule to a Kinesis Firehose stream. When creating a rule with a firehose action, you must specify the following information:

deliveryStreamName

The Kinesis Firehose stream to which to write the message data.

roleArn

The IAM role that allows access to Kinesis Firehose.

separator

A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).

Note

Make sure the role associated with the rule has a policy that grants the firehose:PutRecord permission.

The following JSON example shows how to create an AWS IoT rule with a firehose action:

Copy
{ "rule": { "sql": "SELECT * FROM 'some/topic'", "ruleDisabled": false, "actions": [{ "firehose": { "roleArn": "arn:aws:iam::123456789012:role/aws_iot_firehose", "deliveryStreamName": "my_firehose_stream" } }] } }

For more information, see the Kinesis Firehose Developer Guide.