diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d42e18..60aaa6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* expose the TEA lambda timeout value to allow for DAAC customization * add `--platform linux/amd64` to all Docker commands in `Makefile` so `make image` and `make container-shell` work on Apple Silicon machines diff --git a/cumulus/thin-egress.tf b/cumulus/thin-egress.tf index d31283c..cbe7ea0 100644 --- a/cumulus/thin-egress.tf +++ b/cumulus/thin-egress.tf @@ -12,6 +12,7 @@ module "thin_egress_app" { html_template_dir = var.html_template_dir jwt_algo = var.thin_egress_jwt_algo jwt_secret_name = local.thin_egress_jwt_secret_name + lambda_timeout = var.thin_egress_lambda_timeout lambda_code_dependency_archive_key = var.thin_egress_lambda_code_dependency_archive_key log_api_gateway_to_cloudwatch = var.log_api_gateway_to_cloudwatch permissions_boundary_name = "NGAPShRoleBoundary" diff --git a/cumulus/variables.tf b/cumulus/variables.tf index de23110..d5d739d 100644 --- a/cumulus/variables.tf +++ b/cumulus/variables.tf @@ -402,6 +402,12 @@ variable "thin_egress_lambda_code_dependency_archive_key" { description = "S3 Key of packaged python modules for lambda dependency layer." } +variable "thin_egress_lambda_timeout" { + type = number + default = 6 + description = "Timeout in seconds for thin egress lambda." +} + variable "egress_lambda_log_retention_days" { type = number default = 30