Skip to content

Commit 73d9b47

Browse files
committed
[NDR-181] remove lamba_edge lambda_timeout
1 parent d70577f commit 73d9b47

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

infrastructure/lambda-edge-presign.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ module "edge_presign_alarm_topic" {
6666
}
6767

6868
module "edge-presign-lambda" {
69-
source = "./modules/lambda_edge"
70-
lambda_timeout = 5
71-
name = "EdgePresignLambda"
72-
handler = "handlers.edge_presign_handler.lambda_handler"
69+
source = "./modules/lambda_edge"
70+
name = "EdgePresignLambda"
71+
handler = "handlers.edge_presign_handler.lambda_handler"
7372
iam_role_policies = [
7473
"arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
7574
aws_iam_policy.ssm_access_policy.arn,

infrastructure/modules/lambda_edge/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ module "s3_proxy_lambda" {
3636
# Optional: Memory allocation in MB
3737
memory_size = 128
3838
39-
# Optional: Function timeout in seconds
40-
lambda_timeout = 30
41-
4239
# Optional: Ephemeral storage in MB
4340
lambda_ephemeral_storage = 512
4441
@@ -78,11 +75,10 @@ module "s3_proxy_lambda" {
7875
| <a name="input_handler"></a> [handler](#input_handler) | n/a | `string` | n/a | yes |
7976
| <a name="input_iam_role_policies"></a> [iam_role_policies](#input_iam_role_policies) | n/a | `list(string)` | n/a | yes |
8077
| <a name="input_lambda_ephemeral_storage"></a> [lambda_ephemeral_storage](#input_lambda_ephemeral_storage) | n/a | `number` | `512` | no |
81-
| <a name="input_lambda_timeout"></a> [lambda_timeout](#input_lambda_timeout) | n/a | `number` | `30` | no |
8278
| <a name="input_memory_size"></a> [memory_size](#input_memory_size) | n/a | `number` | `128` | no |
8379
| <a name="input_name"></a> [name](#input_name) | n/a | `string` | n/a | yes |
8480
| <a name="input_reserved_concurrent_executions"></a> [reserved_concurrent_executions](#input_reserved_concurrent_executions) | The number of concurrent execution allowed for lambda. A value of 0 will stop lambda from running, and -1 removes any concurrency limitations. Default to -1. | `number` | `-1` | no |
85-
| <a name="input_table_name"></a> [table_name](#input_table_name) | The name of the DynamoDB table used by the Lambda function. | `string` | n/a | yes |
81+
| <a name="input_table_name"></a> [table_name](#input_table_name) | The name of the bucket | `string` | n/a | yes |
8682

8783
## Outputs
8884

infrastructure/modules/lambda_edge/variable.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ variable "handler" {
88
type = string
99
}
1010

11-
variable "lambda_timeout" {
12-
description = "Timeout value (in seconds) for the Lambda function."
13-
type = number
14-
default = 30
15-
}
16-
1711
variable "memory_size" {
1812
description = "Amount of memory (in MB) to allocate to the Lambda function."
1913
type = number

0 commit comments

Comments
 (0)