Skip to content

Commit eecf073

Browse files
committed
Add tracing config to keep tfsec happy
1 parent a9bf47f commit eecf073

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lambda.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ resource "aws_lambda_function" "lambda" {
3232
security_group_ids = [aws_security_group.this.id]
3333
}
3434

35+
tracing_config {
36+
#tfsec:ignore:aws-lambda-enable-tracing Let the caller decide if they want to enable tracing
37+
mode = "PassThrough"
38+
}
39+
3540
layers = [
3641
"arn:aws:lambda:${data.aws_region.current.name}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python312-arm64:${var.powertools_version}"
3742
]

0 commit comments

Comments
 (0)