diff --git a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/lambda.tf b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/lambda.tf
index a659054..1e7ecef 100644
--- a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/lambda.tf
+++ b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/lambda.tf
@@ -17,7 +17,8 @@ module "lambda_function_container_image" {
attach_policy_statements = true
environment_variables = {
- QUEUE_URL = var.queue_url
+ QUEUE_URL = var.queue_url
+ BUCKET_NAME = var.bucket_name
}
policy_statements = {
diff --git a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/variables.tf b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/variables.tf
index 1a1ca8d..6fea76b 100644
--- a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/variables.tf
+++ b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/iac/variables.tf
@@ -13,6 +13,11 @@ variable "ses_bucket_arn" {
nullable = false
}
+variable "bucket_name" {
+ type = string
+ nullable = false
+}
+
variable "queue_url" {
type = string
nullable = false
diff --git a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/pom.xml b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/pom.xml
index 8b48bfe..f6e442d 100644
--- a/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/pom.xml
+++ b/lambdas/ResumeProcessor/ResumeRequestPreProcessorFunction/pom.xml
@@ -15,37 +15,37 @@
com.amazonaws
aws-lambda-java-core
- 1.2.1
+ 1.2.3
com.amazonaws
aws-lambda-java-events
- 3.11.0
+ 3.11.6
software.amazon.awssdk
s3
- 2.20.52
+ 2.26.9
software.amazon.awssdk
sqs
- 2.20.52
+ 2.26.9
software.amazon.awssdk
apache-client
- 2.20.52
+ 2.26.9
com.fasterxml.jackson.core
jackson-databind
- 2.15.3
+ 2.17.0
com.fasterxml.jackson.datatype
jackson-datatype-joda
- 2.15.3
+ 2.17.1
junit
diff --git a/terraform/modules.tf b/terraform/modules.tf
index 3d585cd..1253133 100644
--- a/terraform/modules.tf
+++ b/terraform/modules.tf
@@ -187,6 +187,7 @@ module "resume_request_preprocessor" {
lambda_function_name = local.resume_request_preprocessor_lambda_name
lambda_repository_name = var.resume_request_preprocessor_lambda_repository_name
ses_bucket_arn = module.s3_bucket.s3_bucket_arn
+ bucket_name = local.bucket_name
request_queue_arn = module.resume_request_processor.queue_arn
queue_url = module.resume_request_processor.queue_url
}