Skip to content

Commit

Permalink
Use reference generator limit from da-configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh committed Oct 9, 2023
1 parent c99b260 commit 9188ccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions terraform/root_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ locals {
reference_generator_function_name = "${var.project}-reference-generator-${local.hosting_environment}"
reference_generator_api_gateway_name = "${upper(var.project)}ReferenceGenerator${local.hosting_environment}"
reference_counter_table_name = "${var.project}-reference-counter"
reference_generator_limit = module.terraform_config_hosting_project.terraform_config["reference_generator_limit"]
api_task_role_arn = module.terraform_config_hosting_project.terraform_config[local.hosting_environment]["api_task_role_arn"]
api_execution_role_arn = module.terraform_config_hosting_project.terraform_config[local.hosting_environment]["api_execution_role_arn"]
}
2 changes: 1 addition & 1 deletion terraform/root_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module "reference_generator_lambda" {
REFERENCE_KEY_VALUE = "fileCounter"
REFERENCE_COUNTER = "referenceCounter"
QUERY_PARAM = "numberofrefs"
REFERENCE_LIMIT = 5000
REFERENCE_LIMIT = local.reference_generator_limit
}
runtime = "java11"
timeout_seconds = 60
Expand Down

0 comments on commit 9188ccf

Please sign in to comment.