Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to add SL to a give FAAS, you only need to do one thing, and change the deployment manifest to includes the support of Sealights lambda layer

Collector changes

The collector needs to be configured to support node lambda calls. This should be done by adding the following flags under the collectors->properties section:

Code Block
collectors:  
  ...
  properties:
    ...
    enableNYCCollector: true      
    nycCollectorUploadInterval: 60

Deployment Manifest Changes

...

Environment Variable Name

Description

Type

SL_TOKEN

Agent token needed for authentication

string

SL_PROJECT_ROOT

Determine the root directory of project, default is current working directory.

string

SL_BUILD_SESSION_ID

Set build session id name

string

LAB_ID

Set the lab ID value

string

Code Example

Code repository

...