diff --git a/README.md b/README.md index 3da711c..9ffb00a 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ You need to also clean up the SQS queue in the observablity hub account as the e |------|-------------|------|---------|:--------:| | [eventbridge\_rules](#input\_eventbridge\_rules) | EventBridge rule settings. |
map(object({| `{}` | no | | [kms\_key\_arn](#input\_kms\_key\_arn) | ARN of the KMS key. | `string` | n/a | yes | +| [lambda\_timeout](#input\_lambda\_timeout) | Lambda function timeout. | `number` | `60` | no | | [monitoring\_account\_configuration](#input\_monitoring\_account\_configuration) | Configuration settings of the monitoring account. |
description : string
state : string
event_pattern : string
})
)
object({| n/a | yes | | [source\_directory\_location](#input\_source\_directory\_location) | Source Directory location for the custom alarm creator actions.py. | `string` | `null` | no | | [sqs\_dlq\_arn](#input\_sqs\_dlq\_arn) | ARN of the Dead Letter Queue. | `string` | n/a | yes | diff --git a/lambda_cw_alarm_creator.tf b/lambda_cw_alarm_creator.tf index 11079b0..3d2c9fa 100644 --- a/lambda_cw_alarm_creator.tf +++ b/lambda_cw_alarm_creator.tf @@ -11,7 +11,7 @@ module "lambda_cw_alarm_creator" { handler = "lambda_function.lambda_handler" memory_size = 128 - timeout = 60 + timeout = var.lambda_timeout runtime = "python3.9" source_type = "local" diff --git a/variables.tf b/variables.tf index 5f5bd19..0d18c34 100644 --- a/variables.tf +++ b/variables.tf @@ -35,3 +35,9 @@ variable "source_directory_location" { type = string default = null } + +variable "lambda_timeout" { + description = "Lambda function timeout." + type = number + default = 60 +}
sqs_name = string
sqs_region = string
sqs_account = number
})