AWS Lambda Function (Serverless)

The Lambda function high fidelity digital twin is represented by a set of CloudWatch resources in your Tensor9 AWS account rather than a real Lambda function. Here's how it works:

When you deploy a Lambda function to an appliance, Tensor9 creates the following digital twin resources in your Tensor9 AWS account:

  1. CloudWatch Dashboard: Displays Lambda-related metrics such as invocation count, average duration, error rate, and throttles. These metrics are populated by telemetry sent from the corresponding Lambda function in the customer appliance.
  2. CloudWatch Log Group: Contains logs for the Lambda function, synchronized in real time from the appliance. Logs are appended to the customer’s audit log for traceability.

Key Features:

  • Monitor Metrics: The CloudWatch dashboard provides a real-time view of key Lambda function metrics. This includes:
    • Invocation count
    • Duration
    • Error rate
    • Throttled invocations
  • View Logs: The CloudWatch log group captures the logs generated by the Lambda function inside the appliance. You can explore these logs just as you would for a real Lambda function in your AWS account.
  • Audit-Logged Telemetry: All logs synchronized to your digital twin are appended to the customer’s audit log to maintain transparency.
  • Customer-Controlled Data Flow: The customer explicitly allow-lists what telemetry (e.g., logs or metrics) can be sent from the appliance to the digital twin.

Important Notes:

  • No Test Invocations: You cannot invoke the Lambda function directly through the digital twin, as this would require duplicating the compute resources and incurring corresponding costs.
  • No Automatic Alerts: The Lambda function digital twin does not come with predefined CloudWatch alarms. However, you can create your own CloudWatch alarms if needed, just as you would for a real Lambda function.

By providing a CloudWatch dashboard and log group, the Lambda function digital twin enables you to observe the operational state of serverless workloads within customer appliances without requiring direct access to the customer’s environment.