Brining Context to the data
In order to make the data useful we need to bring some more context to the data.
The OPC UA Connector includes a contextualizer - let’s have a look in the code what it’s doing.
Open the Lambda service from AWS Console:

Open the OPCUA-Connector... function.

Then lets look into the python script called contextualize.py

So this portion is a stateful function which adds the current product id to all events that are processed - in this way you don’t need to have a complex calculation later on to add this context.
For this workshop you don’t need to modify anything here but if you have different data it’s a good pattern do add more context to the incoming events.
