Skip to content

Commit

Permalink
fix: add openai deps
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubUmoru committed Jul 25, 2023
1 parent 4cfeb69 commit 2444b95
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified lambda/chatgpt_result_processor.zip
Binary file not shown.
Binary file modified lambda/log_analytics.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/chatgpt-waf-log-evaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ChatGPTWafLogEvaluation extends Construct {
const waf_log_analysis_lambda = new lambda.Function(this, 'waf-log-check-lambda', {
runtime: lambda.Runtime.PYTHON_3_10,
code: lambda.Code.fromAsset(path.join(__dirname, '..', '..', 'lambda', 'log_analytics.zip')),
handler: 'log_analytics.handler',
handler: 'index.handler',
role: waf_log_checker_lambda_role,
architecture: lambda.Architecture.ARM_64,
//layers: [lambdaLayer],
Expand Down
2 changes: 1 addition & 1 deletion src/components/chatgpt-waf-log-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ChatGPTWafLogProcessor extends Construct {
runtime: lambda.Runtime.PYTHON_3_10,
code: lambda.Code.fromAsset(path.join(__dirname, '..', '..', 'lambda', 'chatgpt_result_processor.zip'), {
}),
handler: 'chatgpt_result_processor.handler',
handler: 'index.handler',
role: waf_log_processor_lambda_role,
description:
'Reads DynamoDB where IPs are listed by ChatBGP to block and blocks them bei syncing to an IPSet.',
Expand Down

0 comments on commit 2444b95

Please sign in to comment.