Skip to content

Commit

Permalink
reinstate lambda env check
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Dec 13, 2024
1 parent 36007c8 commit 39cad37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ import {
*/
export class AwsLambdaDetectorSync implements DetectorSync {
detect(): IResource {
const awsRegion = process.env.AWS_REGION;
const functionName = process.env.AWS_LAMBDA_FUNCTION_NAME;
if (!functionName) {
return Resource.empty();
}

const awsRegion = process.env.AWS_REGION;
const functionVersion = process.env.AWS_LAMBDA_FUNCTION_VERSION;
const logGroupName = process.env.AWS_LAMBDA_LOG_GROUP_NAME;
const logStreamName = process.env.AWS_LAMBDA_LOG_STREAM_NAME;
Expand Down

0 comments on commit 39cad37

Please sign in to comment.