This page describes required and optional environment variables, including HTTP proxy support, and how to input the variables in the AWS Management Console.
Serverless Tracer Support
The Java Serverless Tracer supports Java 8.
The Node.js Serverless Tracer supports Node.js 10.x, 12.x, and 14.x.
The Python Serverless Tracer supports Python 3.6, 3.7, and 3.8.
Configure Environment Variables
To instrument Serverless APM for AWS Lambda, you must configure the environment variables listed in the table below. Enter all applicable information as key-value environment variables in the AWS Management Console.
When you change an environment variable, any existing instances complete execution using the previous value. All new requests execute with the updated value.
|Account name associated with the Controller used by your AWS Lambda function.
|Access key for your Controller. See Agent-to-Controller Connections.
|Name of the application where the tracer is instrumented.
|Host associated with the Controller used by your AWS Lambda function. Do not include
Port associated with your Controller.
Disables the Serverless Tracer and stops all serverless application monitoring.
Accepted values are
Used by the Node.js Serverless Tracer to enable End User Monitoring for AWS Lamba functions. Set to
See Integrate the Node.js Serverless Tracer with End User Monitoring for details.
|HTTP timeout in milliseconds for the tracer to send data downstream.
Log level for the tracer. Accepted values are
AppDynamics endpoint that the tracer to reports to. Serverless API endpoints are available for the following AWS regions: Sydney, Frankfurt, and Oregon.
The name of your AWS Lambda function.
Defaults to the name of your AWS Lambda function.
HTTP Proxy Support
To enable HTTP Proxy Support, define the following variables in the AWS Management Console:
|Publicly-accessible hostname of the proxy.
|Port on which the proxy is running.
|Relative path to the proxy server's certificate. Required if your proxy server runs on a self-signed certificate for your AWS Lambda function to trust the proxy. If you have configured your runtime environment to trust your proxy server, you do not need this variable.
Additionally, you can add credentials for your proxy server's basic authentication. Add the following variables in the AWS Management Console:
|Username associated with your basic authentication.
|Relative path to the proxy server's basic authentication password. Required for your proxy server's password to trust your AWS Lambda function.
|Plaintext file to the proxy server's basic authentication password file. Update your deployment package to contain the proxy server's password file. Required for your proxy server's password to trust your AWS Lambda function.
When you add basic credentials, you are required to include either
APPDYNAMICS_HTTP_PROXY_PASSWORD_FILE. If you include both, the tracer only passes
Add Environment Variables in the AWS Console
To add environmental variables through the AWS Management Console:
- Sign in to the AWS Management Console.
- Go to AWS Services and open Lambda.
- Select your AWS Lambda function.
- Go to Environment variables and enter your function's key-value pair environment variables.
- Click Save.
The following image shows an example of all required environment variables:
Amazon Web Services, the AWS logo, AWS, and any other AWS Marks used in these materials are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.