Skip to content

Commit

Permalink
move link
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Jan 21, 2025
1 parent ff814dc commit feb4552
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ import {
* The AwsLambdaDetector can be used to detect if a process is running in AWS Lambda
* and return a {@link Resource} populated with data about the environment.
* Returns an empty Resource if detection fails.
*
* AWS Lambda documentation for available environment variables within the Lambda runtimes.
* @see https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
*/
export class AwsLambdaDetectorSync implements DetectorSync {
detect(_config?: ResourceDetectionConfig): IResource {
Expand All @@ -51,6 +48,7 @@ export class AwsLambdaDetectorSync implements DetectorSync {
}

// These environment variables are guaranteed to be present in AWS Lambda
// https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
const region = process.env.AWS_REGION;
const functionName = process.env.AWS_LAMBDA_FUNCTION_NAME;
const functionVersion = process.env.AWS_LAMBDA_FUNCTION_VERSION;
Expand Down

0 comments on commit feb4552

Please sign in to comment.