Forwarding AWS Lambda logs to SnappyFlow
The AWS Lambda Extension is designed to forward logs from your AWS Lambda functions to SnappyFlow without requiring an external transport such as CloudWatch Logs.
This lightweight extension runs alongside your AWS Lambda functions. Submitting Lambda logs with the extension is supported in all Lambda runtimes.
Enable Lambda extension in your function
As Lambda Layer
Add the Lambda Layer for the SnappyFlow extension to your AWS Lambda function with the following ARN:
Replace <AWS_REGION> with the same AWS region as your Lambda Function, for example, us-west-2
As Container Image
Add the SnappyFlow Lambda extension to your container image by adding the following to your Dockerfile:
COPY --from=snappyflowml/sf-lambda-extension:latest /opt/extensions/ /opt/extensions
Add the environment variable
SF_PROFILE_KEYand set the value to your profile key copied from SnappyFlow
Add environment variables
PROJECT_NAMEwith appropriate values