1 個回答
- 最新
- 最多得票
- 最多評論
0
Lambda event source mapping is used only for the event sources that Lambda needs to poll such as SQS, Kinesis, Kafka, etc. IoT Rules are different. In order to trigger a Lambda function from an IoT rule you need to use the create_topic_rule in the IoT client.
Hi Uri, Thank you for the response. Yes I checked that earlier and I knew that I can use create_topic_rule to create new rule and set an action to trigger lambda. But I don't think I could use create_topic_rule to set an action to trigger lambda for an already created rule. Could you please point out which API I should use for the same? (I am expecting that I just have to pass the ARN of the existing rule and ARN of the lambda)
相關內容
- 已提問 6 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 3 年前
Hi edgegoldberg, Did you figure out or solve this issue? I am struggling with the same error when trying to set up an IoT Rule as a trigger to a lambda function in a cloudformation template, and using the EventSourceMapping resource.