Skip to content

Commit 6278de4

Browse files
authored
Merge pull request #46 from SPHTech-Platform/feat/retry-config
adds support for retries
2 parents 3ceadcc + 8541b5c commit 6278de4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ module "lambda" {
5050
create_unqualified_alias_async_event_config = var.create_unqualified_alias_async_event_config
5151
destination_on_failure = var.destination_on_failure
5252
destination_on_success = var.destination_on_success
53+
maximum_event_age_in_seconds = var.maximum_event_age_in_seconds
54+
maximum_retry_attempts = var.maximum_retry_attempts
5355
allowed_triggers = var.allowed_triggers
5456

5557
create_lambda_function_url = var.create_lambda_function_url

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,15 @@ variable "destination_on_success" {
508508
type = string
509509
default = null
510510
}
511+
512+
variable "maximum_event_age_in_seconds" {
513+
description = "Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600."
514+
type = number
515+
default = null
516+
}
517+
518+
variable "maximum_retry_attempts" {
519+
description = "Maximum number of times to retry when the function returns an error. Valid values between 0 and 2."
520+
type = number
521+
default = null
522+
}

0 commit comments

Comments
 (0)