Skip to content

Commit

Permalink
Updates 2024-07-10 - Lambda loguru error
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Jul 10, 2024
1 parent 51e01d2 commit d847ab8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion herding_cats_pipelines/lambda_jobs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
requests==2.32.3
boto3==1.34.140
boto3==1.34.140
loguru==0.7.2
6 changes: 5 additions & 1 deletion herding_cats_pipelines/terraform/lambda-module/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ resource "aws_lambda_function" "herding-cats" {
role = aws_iam_role.lambda_role.arn
handler = "main.lambda_handler"
memory_size = 2048
reserved_concurrent_executions = 1
timeout = 15
runtime = "python3.11"
s3_bucket = var.code_bucket_name
s3_key = "lambda_herding_cats_jobs.zip"
source_code_hash = data.aws_s3_object.lambda_code.etag
}

resource "aws_lambda_function_event_invoke_config" "herding-cats_concurrency" {
function_name = aws_lambda_function.herding-cats.function_name
maximum_retry_attempts = 0
}

# IAM role for Lambda
resource "aws_iam_role" "lambda_role" {
name = "${var.function_name}-role"
Expand Down

0 comments on commit d847ab8

Please sign in to comment.