Skip to content

Commit

Permalink
lambda retry attempt updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sfdevops committed Aug 25, 2024
1 parent c6207a2 commit 6cf2fb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/decoupling-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions terraform/decoupling-infra/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
############################################################################
Expand Down

0 comments on commit 6cf2fb7

Please sign in to comment.