Skip to content

Commit

Permalink
fix(forwarder): increase timeout (#137)
Browse files Browse the repository at this point in the history
The duration of `CopyObject` depends on file size and source and
destination region. In order to account for large files, we need to
increase our lambda timeout value.
  • Loading branch information
jta authored Apr 19, 2024
1 parent 777722c commit f504492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/forwarder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ No modules.
| <a name="input_destination"></a> [destination](#input\_destination) | Destination filedrop | <pre>object({<br> arn = string<br> bucket = string<br> prefix = string<br> })</pre> | n/a | yes |
| <a name="input_lambda_env_vars"></a> [lambda\_env\_vars](#input\_lambda\_env\_vars) | Environment variables to be passed into lambda. | `map(string)` | `{}` | no |
| <a name="input_lambda_memory_size"></a> [lambda\_memory\_size](#input\_lambda\_memory\_size) | Memory size for lambda function. | `number` | `128` | no |
| <a name="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout) | Timeout in seconds for lambda function. | `number` | `20` | no |
| <a name="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout) | Timeout in seconds for lambda function. | `number` | `300` | no |
| <a name="input_max_file_size"></a> [max\_file\_size](#input\_max\_file\_size) | Max file size for objects to process (in bytes), default is 1GB | `number` | `1073741824` | no |
| <a name="input_name"></a> [name](#input\_name) | Name of role. Since this name must be unique within the<br>account, it will be reused for most of the resources created by this<br>module. | `string` | n/a | yes |
| <a name="input_queue_batch_size"></a> [queue\_batch\_size](#input\_queue\_batch\_size) | Max number of items to process in single lambda execution | `number` | `10` | no |
Expand Down
2 changes: 1 addition & 1 deletion modules/forwarder/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ variable "lambda_timeout" {
description = "Timeout in seconds for lambda function."
type = number
nullable = false
default = 20
default = 300
}

variable "lambda_env_vars" {
Expand Down

0 comments on commit f504492

Please sign in to comment.