0

I have use case like once data received in AWS IoT Rules Engine from things, I want to call API instead of dynamoDb, kinesis and lambda. I read FAQ https://aws.amazon.com/iot/faqs/ and doc but now found anything related to routing data to API on EC2 instance. This developer guide http://docs.aws.amazon.com/iot/latest/developerguide/iot-create-rule.html shows how to route data to dynamoDb, S2, Kinesis, SNS and machine learning. Is it possible to route data to EC2 instance from IoT Rules Engine?

Ripal Tamboli
  • 562
  • 1
  • 4
  • 16

1 Answers1

0

You can create a iot rule to connect to lambda and in lambda function you can call your EC2 API.

mightymahesh
  • 303
  • 3
  • 14
  • but this flow will additionally add charges of lambda service. Is there any other alternate option? – Ripal Tamboli Dec 09 '16 at 09:22
  • 2
    `iot rule > lambda > ec2` is the simplest and preferred way, if you dont want real time processing of your data you can create rule to call S3 to store your event and then from ec2 you can fetch these events process it and then delete it from s3. – mightymahesh Dec 09 '16 at 09:47
  • You could also publish to an SNS topic to which you have subscribed your ec2 api. – cementblocks Mar 13 '18 at 01:03