diff --git a/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/main.tf b/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/main.tf index 2eadfb6..51534a4 100644 --- a/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/main.tf +++ b/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/main.tf @@ -618,8 +618,8 @@ module "prompt_orchestrator_lambda_function" { layers = [ module.anthropic_sf_lambda_layer.lambda_layer_arn, - module.pandas_numpy_lambda_layer.lambda_layer_arn, - module.pydantic_lambda_layer.lambda_layer_arn + module.pydantic_lambda_layer.lambda_layer_arn, + var.pandas_numpy_lambda_layer_additional_arn ] environment_variables = merge(local.environment_variables, local.prompt_orchestrator_lambda.environment_variables, { diff --git a/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/variables.tf b/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/variables.tf index 0679020..d27e739 100644 --- a/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/variables.tf +++ b/textract-pipeline/terraform/modules/aws-textract-pipeline-part3/variables.tf @@ -252,6 +252,11 @@ variable "pandas_numpy_lambda_layer" { } } +variable "pandas_numpy_lambda_layer_additional_arn" { + type = string + default="arn:aws:lambda:us-east-2:336392948345:layer:AWSSDKPandas-Python310:16" +} + # s3-folder-details variable "s3_folder_detail_lambda" { @@ -564,7 +569,7 @@ locals { name = "prompt-orchestrator" description = "This Lambda functions breaks prompts into chunks and send messages into SQS" handler = "index.lambda_handler" - runtime = "python3.12" + runtime = "python3.10" timeout = 600 memory_size = 256 ephemeral_storage_size = 512