Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from TechNative-B-V/feature/lambda-timeout-var…
Browse files Browse the repository at this point in the history
…iable

 Made lambda timeout a variable to prevent locking the lambda to a set timeout
  • Loading branch information
AndrNgg authored Aug 30, 2024
2 parents bd192b9 + b8a5313 commit e2fbfc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ You need to also clean up the SQS queue in the observablity hub account as the e
|------|-------------|------|---------|:--------:|
| <a name="input_eventbridge_rules"></a> [eventbridge\_rules](#input\_eventbridge\_rules) | EventBridge rule settings. | <pre>map(object({<br> description : string<br> state : string<br> event_pattern : string<br> })<br> )</pre> | `{}` | no |
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | ARN of the KMS key. | `string` | n/a | yes |
| <a name="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout) | Lambda function timeout. | `number` | `60` | no |
| <a name="input_monitoring_account_configuration"></a> [monitoring\_account\_configuration](#input\_monitoring\_account\_configuration) | Configuration settings of the monitoring account. | <pre>object({<br> sqs_name = string<br> sqs_region = string<br> sqs_account = number<br> })</pre> | n/a | yes |
| <a name="input_source_directory_location"></a> [source\_directory\_location](#input\_source\_directory\_location) | Source Directory location for the custom alarm creator actions.py. | `string` | `null` | no |
| <a name="input_sqs_dlq_arn"></a> [sqs\_dlq\_arn](#input\_sqs\_dlq\_arn) | ARN of the Dead Letter Queue. | `string` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion lambda_cw_alarm_creator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ variable "source_directory_location" {
type = string
default = null
}

variable "lambda_timeout" {
description = "Lambda function timeout."
type = number
default = 60
}

0 comments on commit e2fbfc7

Please sign in to comment.