From 6cf2fb739fb1a6ee83d38fa4d2ceb61a80040842 Mon Sep 17 00:00:00 2001 From: sfdevops Date: Sun, 25 Aug 2024 13:19:21 +0530 Subject: [PATCH] lambda retry attempt updated --- terraform/decoupling-infra/main.tf | 1 + terraform/decoupling-infra/variable.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/terraform/decoupling-infra/main.tf b/terraform/decoupling-infra/main.tf index d93d4b0a..490d79a4 100644 --- a/terraform/decoupling-infra/main.tf +++ b/terraform/decoupling-infra/main.tf @@ -168,6 +168,7 @@ module "lambda_function_container_image" { ephemeral_storage_size = var.ephemeral_storage_size package_type = "Image" architectures = var.compatible_architectures + maximum_retry_attempts = var.maximum_retry_attempts environment_variables = { TIER_DETAILS_TABLE = "${var.namespace}-${var.environment}-decoupling-tier-map-table" diff --git a/terraform/decoupling-infra/variable.tf b/terraform/decoupling-infra/variable.tf index ddd91b4b..52472b62 100644 --- a/terraform/decoupling-infra/variable.tf +++ b/terraform/decoupling-infra/variable.tf @@ -91,6 +91,12 @@ variable "reserved_concurrent_executions" { default = -1 } +variable "maximum_retry_attempts" { + description = "Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2." + type = number + default = 0 +} + ############################################################################ ## API Gateway ############################################################################