Posted On: Oct 29, 2023

Today, Amazon IoT Core, a fully managed cloud service that lets you connect billions of devices and process trillions of messages, announces a new inline Rule function that enables you to extract the source IP address of the publisher of an IoT message. Once you extract the source IP address, you can send it to other Amazon Web Services and third-party services for further analytics based on your business needs. For example, you can use the source IP address with location solvers to determine the approximate location of an IoT device and build location-based applications, such as asset tracking and video content delivery.

Rules Engine is a component of Amazon IoT Core that allows you to filter, transform, and process IoT device data and route the data to 15+ Amazon Web Services and third-party services. The new inline function in Rules Engine supports IPv4 addresses in Amazon Web Services China Regions, giving you flexibility to capture the source IP address information. To get started, connect your IoT devices to Amazon IoT Core and call the sourceip() inline function to retrieve the source IP address of the IoT message. 

Amazon IoT Core’s capability to retrieve the source IP is available in Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. Please note that IPv6 addresses are not supported in Amazon Web Services China Regions.

For more information, refer to the developer guide