Versions Compared

Key

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

To collect AWS Lambda Function code coverage, we need to configure the AWS Lambda to attach Sealights java agent to the JVM startup command in the AWS Lambda Function execution environment:

  1. Create an AWS Lambda Layer that contains the Sealights' Test Listener Java Agent JAR file.
    This layer can be used by additional We need the AWS Lambda Layer with Sealights test listener jar. We can use the one published by Sealights or create the new one. The layer and the AWS Lambda Function need to be in the same AWS region.

    1. Use one of Sealights java AWS Lambda layers

      arn:aws:lambda:eu-west-1:442677231940:layer:sl-java-agent:1
      arn:aws:lambda:eu-west-2:442677231940:layer:sl-java-agent:1
      arn:aws:lambda:us-east-1:442677231940:layer:sl-java-agent:1
      arn:aws:lambda:us-west-2:442677231940:layer:sl-java-agent:1

    2. Create AWS Lambda Layer yourself which contains SL Test Listener java agent jar. This layer can be reused by many AWS Lambda functions.

  1. Configure your AWS Lambda Function to use the above layer (with SL Java Agent).

...