FAQs and How-tos

How to integrate Amberflo with NodeJS Lambda functions

2min

This is a common approach and there are several options for ingesting meters from a lambda function running NodeJS. To authenticate your Amberflo account and create meters using NodeJS Lambda functions, use the API key which can be found in the 'Settings' view in the Amberflo UI.

  1. Use the Typescript SDK. You can use it as-is from a NodeJS app. You can import the library from a javascript file with this command:
JSON


2. Configure the Amberflo serverless agent to attach to the CloudWatch system in your AWS VPC. You then log the meter records (accompanied with an Amberflo tag, so the agent can identify the meter records). The agent will automatically extract all logs with the tag, and ingest them as meters. More information can be found at: https://docs.amberflo.io/docs/cloudwatch-logs-ingestion-1

3. Write meters directly to an S3 bucket and Amberflo can ingest the meters from there. More information can be found at: https://docs.amberflo.io/docs/s3-ingestion

4. Use our REST APIs to ingest usage data directly. More information can be found at: https://docs.amberflo.io/reference/getting-started-1



📘Return to FAQs

See related from Integrations