Soracom Funk now includes SIM ID metadata
Soracom Funk is an adapter service that allows a device to directly invoke a cloud function service such as AWS Lambda, Azure Functions, or Google Cloud Functions.
When Funk forwards a request to a cloud function, metadata such as IMSI and Operator ID is added to the forwarded data. This metadata can be used in your function to implement logic that requires these values.
With this update, the metadata will now also include the SIM ID. With the SIM ID, you will now be able to write your cloud functions to call a Soracom SIM level API or consolidate logic for SIMs that have multiple IMSIs with Subscription Containers, without the need to separately query the SIM ID associated with the IMSI.
When using Funk with AWS Lambda, a new simId
property is now included in the clientContext
attribute of the context
object.
When using Funk with Azure or Google Cloud Functions, a new simId
property is now included in the ctx
attribute of the decoded JWT token payload, which itself is sent to the function in the x-soracom-token
request header.