To create a bootable jar file for Spring Boot Maven or Gradle, you can follow the instructions here:
If you are using Docker, you can see the instructions for Lambda Container Images on this page:
We recommend adding Thundra Agent as a Lambda Layer. You can see more about how to do this on this page:
Step 1: Set your Lambda's runtime to
Step 2: Set your Lambda's handler to
Step 3: Set the
thundra_agent_lambda_container_springboot_app_artifact environment variable to your application name, e.g.
Step 4: Set the
thundra_agent_lambda_jvm_optimizeForFastStartup environment variable to
true . This is because we want the Lambda runtime JVM process to start with the configured VM arguments that are optimized for a fast start-up. See our documentation on this issue.
Step 5: Set the
thundra_agent_lambda_report_cloudwatch_enable environment variable to
true . This is to report the collected telemetry data over AWS CloudWatch asynchronously. Beware that when you enable CloudWatch, you also have to set up the CloudWatch adapters. Make sure to checkout our documentation on this issue.