From 8541b5cc8bfb3d5c45788c5824e6bf3d786b5654 Mon Sep 17 00:00:00 2001 From: Goh Hong Yi Date: Fri, 10 Oct 2025 16:35:09 +0800 Subject: [PATCH] adds support for retries --- main.tf | 2 ++ variables.tf | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/main.tf b/main.tf index 6c7f91d..9cc0180 100644 --- a/main.tf +++ b/main.tf @@ -50,6 +50,8 @@ module "lambda" { create_unqualified_alias_async_event_config = var.create_unqualified_alias_async_event_config destination_on_failure = var.destination_on_failure destination_on_success = var.destination_on_success + maximum_event_age_in_seconds = var.maximum_event_age_in_seconds + maximum_retry_attempts = var.maximum_retry_attempts allowed_triggers = var.allowed_triggers create_lambda_function_url = var.create_lambda_function_url diff --git a/variables.tf b/variables.tf index c7cad96..5c42a96 100644 --- a/variables.tf +++ b/variables.tf @@ -508,3 +508,15 @@ variable "destination_on_success" { type = string default = null } + +variable "maximum_event_age_in_seconds" { + description = "Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600." + type = number + default = null +} + +variable "maximum_retry_attempts" { + description = "Maximum number of times to retry when the function returns an error. Valid values between 0 and 2." + type = number + default = null +}